[Goodies-dev] [Bug 11153] Fix a memory leak in the FreeBSD code

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Sep 11 15:23:25 CEST 2014


https://bugzilla.xfce.org/show_bug.cgi?id=11153

--- Comment #5 from Danilo Egea <daniloegea at yahoo.com.br> ---
The function devstat_getdevs allocates a structure devinfo when stats.dinfo is
NULL. This should be done just once. In my code I'm using memset to fill both
structures with zeros on every call of DevGetPerfData. Thus, devstat_getdevs is
allocating a new devinfo every time, but never freeing it. Passing a valid
pointer to stats.dinfo avoids the malloc inside devstat_getdevs.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the Goodies-dev mailing list