mtd/fs/jffs2 compr.c,1.37,1.38

havasi at infradead.org havasi at infradead.org
Thu Jun 17 12:31:48 EDT 2004


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/home/havasi/mtd/fs/jffs2

Modified Files:
	compr.c 
Log Message:
Fix a memory leak - recognized by andrea.tarani at gilbarco.com




Index: compr.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/compr.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- compr.c	25 May 2004 11:31:52 -0000	1.37
+++ compr.c	17 Jun 2004 16:31:14 -0000	1.38
@@ -101,6 +101,7 @@
                         }
                 }
                 COMPRESSOR_LIST_UNLOCK;
+                if (ret == JFFS2_COMPR_NONE) JFFS2_FREE(output_buf);
                 break;
         case JFFS2_COMPR_MODE_SIZE:
                 orig_slen = *datalen;





More information about the linux-mtd-cvs mailing list