Bug 161036 - drd does not free client allocated memory
Summary: drd does not free client allocated memory
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: drd (show other bugs)
Version: 3.4 SVN
Platform: Unlisted Binaries Linux
: NOR major
Target Milestone: ---
Assignee: Bart Van Assche
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-19 21:49 UTC by Eugene Toder
Modified: 2008-04-20 10:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Call cli_free to free client memory (1.06 KB, patch)
2008-04-19 21:50 UTC, Eugene Toder
Details
Test case (140 bytes, text/plain)
2008-04-19 21:51 UTC, Eugene Toder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Toder 2008-04-19 21:49:57 UTC
drd_handle_free is missing cli_free, so all memory allocated by client mallocs 
is not actually freed by client frees. this creates a notable leak.
Comment 1 Eugene Toder 2008-04-19 21:50:39 UTC
Created attachment 24413 [details]
Call cli_free to free client memory
Comment 2 Eugene Toder 2008-04-19 21:51:01 UTC
Created attachment 24414 [details]
Test case
Comment 3 Bart Van Assche 2008-04-20 10:35:25 UTC
Thanks for reporting this. This issue is fixed in SVN revision 7895, and the fix will be included in Valgrind version 3.3.1.