Skip to content

Commit

Permalink
crush: fix memory leak when destroying tree buckets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed May 7, 2012
1 parent f671d4c commit 6eb43f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ceph/crush/crush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6eb43f4

Please sign in to comment.