mtd/fs/jffs2 summary.c,1.2,1.3

Artem Bityutskiy dedekind at infradead.org
Wed Sep 21 10:43:11 EDT 2005


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv8584

Modified Files:
	summary.c 
Log Message:
[JFFS2] bugfix: don't forget to free memory in case of error.


Index: summary.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/summary.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- summary.c	20 Sep 2005 14:27:34 -0000	1.2
+++ summary.c	21 Sep 2005 14:43:07 -0000	1.3
@@ -38,6 +38,7 @@
 
 	if (!c->summary->sum_buf) {
 		JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n");
+		kfree(c->summary);
 		return -ENOMEM;
 	}
 





More information about the linux-mtd-cvs mailing list