From: Theodore Ts'o Date: Sun, 25 Jun 2006 12:47:51 +0000 (-0700) Subject: [PATCH] ext3: fix memory leak when the journal file is corrupted X-Git-Tag: v2.6.18-rc1~986 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8f1c6227a0bc9b1e3a7e87cd31f650a909f647f;p=linux-2.6 [PATCH] ext3: fix memory leak when the journal file is corrupted Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jbd/recovery.c b/fs/jbd/recovery.c index 80d7f53fd0..de5bafb4e8 100644 --- a/fs/jbd/recovery.c +++ b/fs/jbd/recovery.c @@ -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; } }