diff options
author | Sage Weil | 2012-05-07 15:37:05 -0700 |
---|---|---|
committer | Sage Weil | 2012-05-07 15:39:36 -0700 |
commit | 6eb43f4b5a2a74599b4ff17a97c03a342327ca65 (patch) | |
tree | 1c9041c56c76aa2e975204ccac477a3a6a38a495 /net/ceph/crush | |
parent | f671d4cd9b36691ac4ef42cde44c1b7a84e13631 (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/crush')
-rw-r--r-- | net/ceph/crush/crush.c | 2 |
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) void crush_destroy_bucket_tree(struct crush_bucket_tree *b) { + kfree(b->h.perm); + kfree(b->h.items); kfree(b->node_weights); kfree(b); } |