Date: Tue, 24 Jun 2008 20:12:13 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 144048 for review Message-ID: <200806242012.m5OKCD4p029827@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=144048 Change 144048 by gabor@gabor_server on 2008/06/24 20:11:19 - Add forgotten free() Affected files ... .. //depot/projects/soc2008/gabor_textproc/grep/binary.c#12 edit Differences ... ==== //depot/projects/soc2008/gabor_textproc/grep/binary.c#12 (text+ko) ==== @@ -84,7 +84,10 @@ /* XXX knows too much about mmf internals */ for (i = 0; i < BUFSIZ && i < f->len; i++) - if (iswbinary(wbuf[i])) + if (iswbinary(wbuf[i])) { + free(wbuf); return (1); + } + free(wbuf); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806242012.m5OKCD4p029827>