pulsecore: don't leak p when make_random_dir_and_link()
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Wed, 18 Feb 2009 19:23:41 +0000 (21:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 04:00:17 +0000 (05:00 +0100)
src/pulsecore/core-util.c

index 623a488..a184beb 100644 (file)
@@ -1411,6 +1411,7 @@ static int make_random_dir_and_link(mode_t m, const char *k) {
         return -1;
     }
 
+    pa_xfree(p);
     return 0;
 }