Fix memory leak in trigger_failover_command.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 9 Oct 2018 04:49:49 +0000 (13:49 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 9 Oct 2018 04:51:45 +0000 (13:51 +0900)
Pointed out by Coverity.

src/main/pgpool_main.c

index 473e8bb7f4f6c42ac46adee9bdb9110d1ee017f6..2e53a0e174f3f0af5d6211944bd532fcb5224f12 100644 (file)
@@ -2569,6 +2569,8 @@ static int trigger_failover_command(int node, const char *command_line,
                r = system(exec_cmd->data);
        }
 
+       free_string(exec_cmd);
+
        return r;
 }
 /*