mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
pulsecore: don't leak d in case of error
This commit is contained in:
parent
4722fecb99
commit
f1dcbe0f5d
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue