summaryrefslogtreecommitdiffstats
path: root/src/crush/crush.c
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2011-03-05 23:38:24 +0100
committerSage Weil <sage.weil@dreamhost.com>2011-03-06 00:27:33 +0100
commit46d63d98434b3bc9dad2fc9ab23cbaedc3bcb0e4 (patch)
treed16d1bdd24225290e69006f3b6573564b281597c /src/crush/crush.c
parentMerge branch 'next' (diff)
downloadceph-46d63d98434b3bc9dad2fc9ab23cbaedc3bcb0e4.tar.xz
ceph-46d63d98434b3bc9dad2fc9ab23cbaedc3bcb0e4.zip
crush: fix memory leak
Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com> Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/crush/crush.c')
-rw-r--r--src/crush/crush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crush/crush.c b/src/crush/crush.c
index 388d18b5af0..1f7cc0c2e6a 100644
--- a/src/crush/crush.c
+++ b/src/crush/crush.c
@@ -88,6 +88,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);
}