]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: fix memory leak
authorSage Weil <sage.weil@dreamhost.com>
Sat, 5 Mar 2011 22:38:24 +0000 (14:38 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 5 Mar 2011 23:27:33 +0000 (15:27 -0800)
Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/crush/crush.c

index 388d18b5af0621c6fa05a32ee0e6387f9e607562..1f7cc0c2e6ae6f2e5234aade3fffc7b395d4975a 100644 (file)
@@ -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);
 }