From: Chris Mason Date: Thu, 5 Feb 2009 14:08:14 +0000 (-0500) Subject: Btrfs: Fix memory leak in cache_drop_leaf_ref X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=806638bce99f51deccbfedbe86ab3c5cf55a1d35;p=linux-2.6-omap-h63xx.git Btrfs: Fix memory leak in cache_drop_leaf_ref The code wasn't doing a kfree on the sorted array Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1d3e9262a9d..7527523c2d2 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -3582,6 +3582,7 @@ static noinline int cache_drop_leaf_ref(struct btrfs_trans_handle *trans, info++; } + kfree(sorted); return 0; }