summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-02-18 21:21:25 +0200
committerLennart Poettering <lennart@poettering.net>2009-02-19 04:59:26 +0100
commitf1dcbe0f5d363f96d7ad44dcb5bd84d09b54ba3a (patch)
tree118aa25f42b9515b8203e037ac9d333b9800a6f8 /src/pulsecore
parent4722fecb993440db4df6a87203aee5eb796c5763 (diff)
pulsecore: don't leak d in case of error
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/core-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 432ee3b7..623a4888 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -1443,6 +1443,7 @@ char *pa_get_runtime_dir(void) {
if (pa_make_secure_dir(d, m, (uid_t) -1, (gid_t) -1) < 0) {
pa_log_error("Failed to create secure directory: %s", pa_cstrerror(errno));
+ pa_xfree(d);
goto fail;
}