summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-05-11 17:33:57 +1000
committerKarolin Seeger <kseeger@samba.org>2019-05-17 07:18:32 +0000
commit5419978537665cbe2233f57f3f289d3843935318 (patch)
treeee4decd4ea6275111b79375e07ce732905bf42a7 /ctdb
parent76c7302105c6f016d5c63315a685746396a789f4 (diff)
downloadsamba-5419978537665cbe2233f57f3f289d3843935318.tar.gz
ctdb-common: Fix memory leak
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13943 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit 30bc6e2529cdd444d4ec7902844c3a6fb0858090)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/event_script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/common/event_script.c b/ctdb/common/event_script.c
index 8978d1452c0..8bdfdd0b5ca 100644
--- a/ctdb/common/event_script.c
+++ b/ctdb/common/event_script.c
@@ -117,7 +117,8 @@ int event_script_get_list(TALLOC_CTX *mem_ctx,
}
*out = script_list;
- return 0;
+ ret = 0;
+ goto done;
nomem:
ret = ENOMEM;