Commit a7e221e9 authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by David Sterba

Btrfs: fix memory leak in load_free_space_cache()

load_free_space_cache() has forgotten to free path.
Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
parent 859acaf1
...@@ -777,6 +777,7 @@ int load_free_space_cache(struct btrfs_fs_info *fs_info, ...@@ -777,6 +777,7 @@ int load_free_space_cache(struct btrfs_fs_info *fs_info,
spin_lock(&block_group->lock); spin_lock(&block_group->lock);
if (block_group->disk_cache_state != BTRFS_DC_WRITTEN) { if (block_group->disk_cache_state != BTRFS_DC_WRITTEN) {
spin_unlock(&block_group->lock); spin_unlock(&block_group->lock);
btrfs_free_path(path);
goto out; goto out;
} }
spin_unlock(&block_group->lock); spin_unlock(&block_group->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment