]> code.delx.au - pulseaudio/commitdiff
daemon: fix leak of script_commands
authorScott Reeves <sreeves@novell.com>
Fri, 21 Aug 2009 21:59:39 +0000 (23:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Aug 2009 21:59:39 +0000 (23:59 +0200)
src/daemon/cmdline.c

index ecb384866337842afa24ce281b1ad954a9db5f6c..3ebc92702722b9ff17cb857751dc336433b35aa0 100644 (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);
     conf->script_commands = pa_strbuf_tostring_free(buf);
 
-    if (!conf->script_commands) {
+    if (conf->script_commands) {
         pa_xfree(conf->script_commands);
         conf->script_commands = NULL;
     }