1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +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>
(cherry picked from commit e357b62fe556609750bdb8d27cf48dfb85c62ec8)
This commit is contained in:
Martin Schwenke 2018-08-27 15:28:47 +10:00 committed by Stefan Metzmacher
parent ae515ea3db
commit a4021fb56d

View File

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