[pulseaudio-tickets] [Bug 95291] Possible memory leak in pulsecore/core-util.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 6 04:51:09 UTC 2016


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

--- Comment #2 from DEEPAK SRIVASTAVA <srivastava.d at samsung.com> ---
Dear Arun, 
Patch has been sent to pulseaudio-discuss at lists.freedesktop.org.


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

Signed-off-by: Deepak Srivastava <srivastava.d at samsung.com>
---
 src/pulsecore/core-util.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 19c89a9..b6eb85a 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -2535,8 +2535,10 @@ char *pa_getcwd(void) {
         if (getcwd(p, l))
             return p;

-        if (errno != ERANGE)
+        if (errno != ERANGE) {
+            pa_xfree(p);
             return NULL;
+        }

         pa_xfree(p);
         l *= 2;
-- 
1.9.1

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


More information about the pulseaudio-bugs mailing list