]> git.proxmox.com Git - mirror_corosync-qdevice.git/commitdiff
test-process-list: Fix few bugs
authorJan Friesse <jfriesse@redhat.com>
Wed, 4 Nov 2020 16:44:35 +0000 (17:44 +0100)
committerJan Friesse <jfriesse@redhat.com>
Wed, 4 Nov 2020 16:52:04 +0000 (17:52 +0100)
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
qdevices/test-process-list.c

index 8c23e2471a54cbe1c00176e60001ed03bf68aac2..df9350acbfbf83756b60f181e6c31e98f1cc1098 100644 (file)
@@ -147,6 +147,8 @@ find_exec_path(const char *exec)
                return (res_path);
        }
 
+       free(res_path);
+
        return (NULL);
 }
 
@@ -167,7 +169,7 @@ wait_for_no_running(struct process_list *plist, int no_running, int no_in_kill_l
                        return (0);
                }
 
-               poll(NULL, 0, timeout);
+               (void)poll(NULL, 0, timeout);
        }
 
        return (-1);
@@ -188,7 +190,7 @@ wait_for_sigusrs_received(void)
                        return (0);
                }
 
-               poll(NULL, 0, timeout);
+               (void)poll(NULL, 0, timeout);
        }
 
        return (-1);