core: Remove bad free() call
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 19 Nov 2012 15:58:22 +0000 (21:28 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 19 Nov 2012 16:02:18 +0000 (21:32 +0530)
The string created when trying to use XDG_RUNTIME_DIR is freed before it
is used in a debug message, and is freed again.

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

src/pulsecore/core-util.c

index d349bab..2685c78 100644 (file)
@@ -1735,7 +1735,6 @@ char *pa_get_runtime_dir(void) {
         k = pa_sprintf_malloc("%s" PA_PATH_SEP "pulse", d);
 
         if (pa_make_secure_dir(k, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
-            free(k);
             pa_log_error("Failed to create secure directory (%s): %s", k, pa_cstrerror(errno));
             goto fail;
         }