pgpool2.git / summary / log / commit / refs

commit    90a2178c1d2fa93733b77314d883271b99b32362
Author:   Muhammad Usama <m.usama@gmail.com>
Date:     Thu Jul 02 11:32:38 2020 +0000

    Fix coverity warnings
    
    CID-1429985 and CID-1429986


src/watchdog/watchdog.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/watchdog/watchdog.c b/src/watchdog/watchdog.c index ab6e7d8c6..ae433c8ed 100644 --- a/src/watchdog/watchdog.c +++ b/src/watchdog/watchdog.c @@ -2073,8 +2073,8 @@ process_IPC_execute_cluster_command(WDCommandData * ipcCommand) if (wdExecCommandArg) pfree(wdExecCommandArg); - if (clusterCommand) - pfree(clusterCommand); + + pfree(clusterCommand); return IPC_CMD_OK; ERROR_EXIT: @@ -4053,8 +4053,7 @@ wd_execute_cluster_command_processor(WatchdogNode * wdNode, WDPacketData * pkt) if (wdExecCommandArg) pfree(wdExecCommandArg); - if (clusterCommand) - pfree(clusterCommand); + pfree(clusterCommand); return; } [parent: 5d77fb909cea]