diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-02-05 09:08:14 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-05 09:08:14 -0500 |
commit | 806638bce99f51deccbfedbe86ab3c5cf55a1d35 (patch) | |
tree | 86e53bb492274a9e20f515220b737e71b6397b86 /fs/btrfs/extent-tree.c | |
parent | 9b0d3ace33ef225690a86d7130feadb22367f496 (diff) | |
download | op-kernel-dev-806638bce99f51deccbfedbe86ab3c5cf55a1d35.zip op-kernel-dev-806638bce99f51deccbfedbe86ab3c5cf55a1d35.tar.gz |
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1d3e926..7527523 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; } |