summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-11-19 21:28:22 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-11-19 21:32:18 +0530
commit968c9c45acff839d6cb560f81d842f4341ea5c0e (patch)
treeda9138ade1266954662475a753eb1ac90b50537f
parent3effdfc16fa4d51ac3a2ad8998eb25434e3087c0 (diff)
core: Remove bad free() call
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
-rw-r--r--src/pulsecore/core-util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index d349bab4f..2685c7860 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -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;
}