Skip to content

Commit 564d594

Browse files
Dan Carpenterkdave
authored andcommitted
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: a320476 ("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>
1 parent 9e0e657 commit 564d594

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/btrfs/tests/qgroup-tests.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ static int remove_extent_ref(struct btrfs_root *root, u64 bytenr,
187187
ret = btrfs_search_slot(&trans, root, &key, path, -1, 1);
188188
if (ret) {
189189
test_err("couldn't find backref %d", ret);
190-
btrfs_free_path(path);
191190
return ret;
192191
}
193192
btrfs_del_item(&trans, root, path);

0 commit comments

Comments
 (0)