Skip to content

Commit

Permalink
Btrfs: Fix memory leak in cache_drop_leaf_ref
Browse files Browse the repository at this point in the history
The code wasn't doing a kfree on the sorted array

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Feb 5, 2009
1 parent 9b0d3ac commit 806638b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,7 @@ static noinline int cache_drop_leaf_ref(struct btrfs_trans_handle *trans,
info++;
}

kfree(sorted);
return 0;
}

Expand Down

0 comments on commit 806638b

Please sign in to comment.