Memory leak in compr.c
andrea.tarani at gilbarco.com
andrea.tarani at gilbarco.com
Thu Jun 17 11:09:38 EDT 2004
If compression are enabled and the current block can't be compressed the
allocated buffer
aren't released.
--- /home/anta/mtd/fs/jffs2/compr.c 2004-05-28 12:50:54.000000000 +0200
+++ /cygdrive/z/linux-2.4.x/fs/jffs2/compr.c 2004-06-17 15:56:14.000000000 +0200
@@ -168,6 +168,7 @@
*datalen = *cdatalen;
none_stat_compr_blocks++;
none_stat_compr_size += *datalen;
+ JFFS2_FREE(output_buf);
}
else {
*cpage_out = output_buf;
More information about the linux-mtd
mailing list