mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
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
This commit is contained in:
parent
3effdfc16f
commit
968c9c45ac
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue