[pulseaudio-commits] src/pulsecore
Arun Raghavan
arun at kemper.freedesktop.org
Mon Nov 19 08:03:13 PST 2012
src/pulsecore/core-util.c | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 968c9c45acff839d6cb560f81d842f4341ea5c0e
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Mon Nov 19 21:28:22 2012 +0530
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
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index d349bab..2685c78 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;
}
More information about the pulseaudio-commits
mailing list