mtd/util mkfs.jffs2.c,1.48,1.49

David Woodhouse dwmw2 at infradead.org
Tue Jan 10 14:14:42 EST 2006


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv31857

Modified Files:
	mkfs.jffs2.c 
Log Message:
Fix memory leak in write_regular_file()


Index: mkfs.jffs2.c
===================================================================
RCS file: /home/cvs/mtd/util/mkfs.jffs2.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- mkfs.jffs2.c	23 Nov 2005 11:15:35 -0000	1.48
+++ mkfs.jffs2.c	10 Jan 2006 19:14:39 -0000	1.49
@@ -866,7 +866,8 @@
 			len -= dsize;
 			offset += dsize;
 
-                        if (tbuf!=cbuf) if (!cbuf) free(cbuf);
+                        if (tbuf != cbuf)
+				free(cbuf);
 		}
 	}
 	if (!je32_to_cpu(ri.version)) {





More information about the linux-mtd-cvs mailing list