mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] minor memleak in ext3 (catched by smatch)
@ 2003-03-06 14:14 Alex Tomas
  0 siblings, 0 replies; only message in thread
From: Alex Tomas @ 2003-03-06 14:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: dan carpenter, Andrew Morton, ext2-devel


This minor memory leak has been catched by smatch.
Thanks to Dan Carpenter!



--- linux/fs/ext3/super.c	Mon Feb 24 17:47:45 2003
+++ super.c	Thu Mar  6 17:09:31 2003
@@ -1154,7 +1154,7 @@
 		if (!bh) {
 			printk(KERN_ERR 
 			       "EXT3-fs: Can't read superblock on 2nd try.\n");
-			return -EINVAL;
+			goto out_fail;
 		}
 		es = (struct ext3_super_block *)(((char *)bh->b_data) + offset);
 		sbi->s_es = es;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-06 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 14:14 [PATCH] minor memleak in ext3 (catched by smatch) Alex Tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®