diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-02-05 15:08:14 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-05 15:08:14 +0100 |
commit | 806638bce99f51deccbfedbe86ab3c5cf55a1d35 (patch) | |
tree | 86e53bb492274a9e20f515220b737e71b6397b86 /fs | |
parent | Btrfs: don't return congestion in write_cache_pages as often (diff) | |
download | linux-806638bce99f51deccbfedbe86ab3c5cf55a1d35.tar.xz linux-806638bce99f51deccbfedbe86ab3c5cf55a1d35.zip |
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')
-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 1d3e9262a9da..7527523c2d2d 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; } |