diff options
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r-- | fs/jbd/journal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index bd3c073b485d..49d5cd6053c8 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -756,6 +756,7 @@ journal_t * journal_init_dev(struct block_device *bdev, | |||
756 | 756 | ||
757 | return journal; | 757 | return journal; |
758 | out_err: | 758 | out_err: |
759 | kfree(journal->j_wbuf); | ||
759 | kfree(journal); | 760 | kfree(journal); |
760 | return NULL; | 761 | return NULL; |
761 | } | 762 | } |
@@ -820,6 +821,7 @@ journal_t * journal_init_inode (struct inode *inode) | |||
820 | 821 | ||
821 | return journal; | 822 | return journal; |
822 | out_err: | 823 | out_err: |
824 | kfree(journal->j_wbuf); | ||
823 | kfree(journal); | 825 | kfree(journal); |
824 | return NULL; | 826 | return NULL; |
825 | } | 827 | } |