[pulseaudio-commits] src/pulsecore

Arun Raghavan arun at kemper.freedesktop.org
Fri May 6 05:41:36 UTC 2016


 src/pulsecore/core-util.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ccc83b6cd7ab14e10f5fec72255a5a9786c277f9
Author: Deepak Srivastava <srivastava.d at samsung.com>
Date:   Fri May 6 10:14:46 2016 +0530

    pulsecore: Fixed possible memory leak
    
    BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=95291
    
    Signed-off-by: Deepak Srivastava <srivastava.d at samsung.com>
    Signed-off-by: Arun Raghavan <git at arunraghavan.net>

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;



More information about the pulseaudio-commits mailing list