From f1dcbe0f5d363f96d7ad44dcb5bd84d09b54ba3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 18 Feb 2009 21:21:25 +0200 Subject: [PATCH] pulsecore: don't leak d in case of error --- src/pulsecore/core-util.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT