[PATCH] ext3: fix memory leak when the journal file is corrupted
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>
This commit is contained in:
parent
f16fdadba2
commit
e8f1c6227a
|
@ -531,6 +531,7 @@ static int do_one_pass(journal_t *journal,
|
||||||
default:
|
default:
|
||||||
jbd_debug(3, "Unrecognised magic %d, end of scan.\n",
|
jbd_debug(3, "Unrecognised magic %d, end of scan.\n",
|
||||||
blocktype);
|
blocktype);
|
||||||
|
brelse(bh);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue