1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Improve error handling consistency

Other errors free argv, so do it here too.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13592

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-08-27 15:28:47 +10:00 committed by Amitay Isaacs
parent 11ee92d1bf
commit e357b62fe5

View File

@ -170,6 +170,7 @@ int ctdb_start_eventd(struct ctdb_context *ctdb)
if (pid == -1) {
close(fd[0]);
close(fd[1]);
talloc_free(argv);
return -1;
}