projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f671d4c
)
crush: fix memory leak when destroying tree buckets
author
Sage Weil
<sage@inktank.com>
Mon, 7 May 2012 22:37:05 +0000
(15:37 -0700)
committer
Sage Weil
<sage@inktank.com>
Mon, 7 May 2012 22:39:36 +0000
(15:39 -0700)
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>
net/ceph/crush/crush.c
patch
|
blob
|
history
diff --git
a/net/ceph/crush/crush.c
b/net/ceph/crush/crush.c
index
b93575f
..
0896132
100644
(file)
--- 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);
}