summaryrefslogtreecommitdiff
path: root/fs/bcachefs/fsck.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-17 00:26:25 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:01 +0300
commitf24fab9cbad1838fc4356e9e8b861a19cf055c3f (patch)
treeea7a946064fe38c913cf44d671a8dc9c46e162c4 /fs/bcachefs/fsck.c
parentae8bbb9fac2c74ce3132adae7b059d1cb8535039 (diff)
downloadlinux-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.c2
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;
}