diff options
author | Martin Schwenke <martin@meltin.net> | 2019-05-11 17:33:57 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-05-14 07:25:37 +0000 |
commit | 30bc6e2529cdd444d4ec7902844c3a6fb0858090 (patch) | |
tree | 6bb82f0ea03256669cfed2e073d349fd97a8176b | |
parent | 6a2941e2a9fd6ab2d5b8dbac042b61a7b1b0b914 (diff) | |
download | samba-30bc6e2529cdd444d4ec7902844c3a6fb0858090.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>
-rw-r--r-- | ctdb/common/event_script.c | 3 |
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; |