daemon: fix leak of script_commands

This commit is contained in:
Scott Reeves 2009-08-21 23:59:39 +02:00 committed by Lennart Poettering
parent 066e160bbd
commit de19bdd34e

View file

@ -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;
} }