diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-17 00:26:25 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:01 +0300 |
commit | f24fab9cbad1838fc4356e9e8b861a19cf055c3f (patch) | |
tree | ea7a946064fe38c913cf44d671a8dc9c46e162c4 /fs/bcachefs/fsck.c | |
parent | ae8bbb9fac2c74ce3132adae7b059d1cb8535039 (diff) | |
download | linux-f24fab9cbad1838fc4356e9e8b861a19cf055c3f.tar.xz |
bcachefs: Fix some small memory leaks
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r-- | fs/bcachefs/fsck.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index e6036d36e0f9..4a48ef5d1bfb 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -1124,6 +1124,8 @@ static int check_directory_structure(struct bch_fs *c, BUG_ON(ret == -EINTR); + kfree(path.entries); + return bch2_trans_exit(&trans) ?: ret; } |