summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-08-27 15:28:47 +1000
committerStefan Metzmacher <metze@samba.org>2018-09-05 13:31:40 +0200
commita4021fb56d8891728ae6c4ed84f79f66d6d9ef92 (patch)
tree6b7a08cd49d9a9bd532037f5e39be654f1146b18 /ctdb
parentae515ea3dbef52099535d8621b511c254fc21f86 (diff)
downloadsamba-a4021fb56d8891728ae6c4ed84f79f66d6d9ef92.tar.gz
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)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/eventscript.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index 41807ffdcb0..74f132c0e80 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -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;
}