patch-2.4.21 linux-2.4.21/fs/partitions/ldm.c

Next file: linux-2.4.21/fs/proc/array.c
Previous file: linux-2.4.21/fs/nfsd/vfs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/fs/partitions/ldm.c linux-2.4.21/fs/partitions/ldm.c
@@ -1223,8 +1223,10 @@
 		return FALSE;
 	}
 
-	if (!ldm_parse_vblk (data, len, vb))
+	if (!ldm_parse_vblk (data, len, vb)) {
+		kfree(vb);
 		return FALSE;			/* Already logged */
+	}
 
 	/* Put vblk into the correct list. */
 	switch (vb->type) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)