daemon: don't free script_commands twice

This commit is contained in:
Lennart Poettering 2009-08-22 03:16:47 +02:00
parent 17dc410e88
commit aa5429805f

View file

@ -385,11 +385,6 @@ 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) {
pa_xfree(conf->script_commands);
conf->script_commands = NULL;
}
*d = optind; *d = optind;
return 0; return 0;