mtd/util compr.c,1.2,1.3

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


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

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/util/compr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- compr.c	25 May 2004 11:31:59 -0000	1.2
+++ compr.c	17 Jun 2004 16:31:40 -0000	1.3
@@ -229,6 +229,7 @@
                                 break;
                         }
                 }
+                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