Skip to content

Commit

Permalink
[PATCH] ext3: fix memory leak when the journal file is corrupted
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Theodore Ts'o authored and Linus Torvalds committed Jun 25, 2006
1 parent f16fdad commit e8f1c62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jbd/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e8f1c62

Please sign in to comment.