Fix memory leak when accessing radix tree
Hi Dave,
It seems that function do_radix_tree doesn't free dynamic
allocated memory and in turn cause memory leak.
Hope that the attached patch would help.
Thanks,
Wang Chao
---
filesys.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/filesys.c b/filesys.c
index c261a44..5448681 100755
--- a/filesys.c
+++ b/filesys.c
@@ -3781,6 +3781,7 @@ do_radix_tree(ulong root, int flag, struct radix_tree_pair *rtp)
maxindex = height_to_maxindex[height];
FREEBUF(height_to_maxindex);
+ FREEBUF(radix_tree_root_buf);
root_rnode = root + OFFSET(radix_tree_root_rnode);
--
1.7.3
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
|