[pulseaudio-tickets] [Bug 95348] Possible memory leak in memtrap.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 13 10:05:06 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95348

Arun Raghavan <arun at accosted.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darwish.07 at gmail.com

--- Comment #1 from Arun Raghavan <arun at accosted.net> ---
(In reply to Sachin Kumar Chauhan from comment #0)
> In src\pulsecore\memtrap.c, a pointer aupdate is allocated memory using
> pa_aupdate_new() but pa_aupdate_free() is never called to free the memory.
> 
> Is the alloted memory being leaked ?

This is one-time statically allocated memory and is not freed until the program
exits. That is why you don't see an explicit free.

That said, it might be possible (and even desirable) to not have this code path
executed in the memfd case. CC'ing Ahmed Darwish to see if he has something to
add there.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160513/1107637e/attachment-0001.html>


More information about the pulseaudio-bugs mailing list