diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-11-27 10:14:24 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-12-08 21:46:43 +0100 |
| commit | 564d59410c39d1adb3e245f58663bad86636adaf (patch) | |
| tree | 09f389368485c5649759214c6084bbbacddd4153 | |
| parent | 9e0e6577b3e5e5cf7c1acd178eb648e8f830ba17 (diff) | |
btrfs: tests: fix double btrfs_path free in remove_extent_ref()
We converted this code to use auto free cleanup.h magic but one
remaining free was accidentally left behind which leads to a double free
bug.
Fixes: a320476ca8a3 ("btrfs: tests: do trivial BTRFS_PATH_AUTO_FREE conversions")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/tests/qgroup-tests.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/tests/qgroup-tests.c b/fs/btrfs/tests/qgroup-tests.c index 05cfda8af422..e9124605974b 100644 --- a/fs/btrfs/tests/qgroup-tests.c +++ b/fs/btrfs/tests/qgroup-tests.c @@ -187,7 +187,6 @@ static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); if (ret) { test_err("couldn't find backref %d", ret); - btrfs_free_path(path); return ret; } btrfs_del_item(&trans, root, path); |
