FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 11-26-2010, 08:39 AM
Wang Chao
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org