[q-lang-cvs] q/src qmmatch.c,1.10,1.11
Brought to you by:
agraef
From: Albert G. <ag...@us...> - 2006-05-29 21:29:21
|
Update of /cvsroot/q-lang/q/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12567 Modified Files: qmmatch.c Log Message: fix potential memleak Index: qmmatch.c =================================================================== RCS file: /cvsroot/q-lang/q/src/qmmatch.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** qmmatch.c 29 May 2006 21:22:26 -0000 1.10 --- qmmatch.c 29 May 2006 21:29:18 -0000 1.11 *************** *** 234,238 **** int j; if (!(yv = malloc(n*sizeof(EXPR*)))) ! return 0; for (j = 0; j < i; j++) yv[j] = qmnew(xv[j]); } --- 234,238 ---- int j; if (!(yv = malloc(n*sizeof(EXPR*)))) ! goto done; for (j = 0; j < i; j++) yv[j] = qmnew(xv[j]); } |