[PATCH] ext3: fix memory leak when the journal file is corrupted
[safe/jmp/linux-2.6] / fs / jbd / recovery.c
index 80d7f53..de5bafb 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;
                }
        }