diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2011-03-05 23:38:24 +0100 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2011-03-06 00:27:33 +0100 |
commit | 46d63d98434b3bc9dad2fc9ab23cbaedc3bcb0e4 (patch) | |
tree | d16d1bdd24225290e69006f3b6573564b281597c /src/crush/crush.c | |
parent | Merge branch 'next' (diff) | |
download | ceph-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.c | 2 |
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); } |