]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Improve error handling consistency
authorMartin Schwenke <martin@meltin.net>
Mon, 27 Aug 2018 05:28:47 +0000 (15:28 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 30 Aug 2018 02:48:56 +0000 (04:48 +0200)
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>
ctdb/server/eventscript.c

index 4ef3b80706a8711561bd3d548474214c40e88282..403e10432b2d0c27afe2a420bca47e79ea4c62b9 100644 (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;
        }