From: Tsutomu Itoh Date: Tue, 14 Feb 2012 08:12:23 +0000 (+0900) Subject: Btrfs: fix memory leak in load_free_space_cache() X-Git-Tag: MMI-PSA29.97-13-9~17312^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7e221e9002306a753d6f78b4060edabce402033;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Btrfs: fix memory leak in load_free_space_cache() load_free_space_cache() has forgotten to free path. Signed-off-by: Tsutomu Itoh --- diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 5802b1473c3d..b30242f4435e 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -777,6 +777,7 @@ int load_free_space_cache(struct btrfs_fs_info *fs_info, spin_lock(&block_group->lock); if (block_group->disk_cache_state != BTRFS_DC_WRITTEN) { spin_unlock(&block_group->lock); + btrfs_free_path(path); goto out; } spin_unlock(&block_group->lock);