mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
daemon: fix leak of script_commands
This commit is contained in:
parent
066e160bbd
commit
de19bdd34e
1 changed files with 1 additions and 1 deletions
|
|
@ -385,7 +385,7 @@ int pa_cmdline_parse(pa_daemon_conf *conf, int argc, char *const argv [], int *d
|
||||||
pa_xfree(conf->script_commands);
|
pa_xfree(conf->script_commands);
|
||||||
conf->script_commands = pa_strbuf_tostring_free(buf);
|
conf->script_commands = pa_strbuf_tostring_free(buf);
|
||||||
|
|
||||||
if (!conf->script_commands) {
|
if (conf->script_commands) {
|
||||||
pa_xfree(conf->script_commands);
|
pa_xfree(conf->script_commands);
|
||||||
conf->script_commands = NULL;
|
conf->script_commands = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue