aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-05-07 18:37:05 -0400
committerSage Weil <sage@inktank.com>2012-05-07 18:39:36 -0400
commit6eb43f4b5a2a74599b4ff17a97c03a342327ca65 (patch)
tree1c9041c56c76aa2e975204ccac477a3a6a38a495 /net/ceph
parentf671d4cd9b36691ac4ef42cde44c1b7a84e13631 (diff)
crush: fix memory leak when destroying tree buckets
Reflects ceph.git commit 46d63d98434b3bc9dad2fc9ab23cbaedc3bcb0e4. Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com> Reviewed-by: Alex Elder <elder@inktank.com> Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/crush/crush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/crush/crush.c b/net/ceph/crush/crush.c
index b93575f4eb13..089613234f03 100644
--- a/net/ceph/crush/crush.c
+++ b/net/ceph/crush/crush.c
@@ -62,6 +62,8 @@ void crush_destroy_bucket_list(struct crush_bucket_list *b)
62 62
63void crush_destroy_bucket_tree(struct crush_bucket_tree *b) 63void crush_destroy_bucket_tree(struct crush_bucket_tree *b)
64{ 64{
65 kfree(b->h.perm);
66 kfree(b->h.items);
65 kfree(b->node_weights); 67 kfree(b->node_weights);
66 kfree(b); 68 kfree(b);
67} 69}