[PATCH] ext3: fix memory leak when the journal file is corrupted
authorTheodore Ts'o <tytso@mit.edu>
Sun, 25 Jun 2006 12:47:51 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:07 +0000 (10:01 -0700)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/jbd/recovery.c

index 80d7f53fd0a759dec8a019c60bb96badf7f927bb..de5bafb4e8534db59d76f86bf6352821a6458012 100644 (file)
@@ -531,6 +531,7 @@ static int do_one_pass(journal_t *journal,
                default:
                        jbd_debug(3, "Unrecognised magic %d, end of scan.\n",
                                  blocktype);
+                       brelse(bh);
                        goto done;
                }
        }