git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556d262
)
s3/dbwrap_ctdb: free resources in an error code path
author
Ralph Boehme
<slow@samba.org>
Fri, 5 May 2017 20:31:54 +0000
(22:31 +0200)
committer
Ralph Boehme
<slow@samba.org>
Sun, 7 May 2017 14:40:19 +0000
(16:40 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sun May 7 16:40:19 CEST 2017 on sn-devel-144
source3/lib/dbwrap/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap_ctdb.c
b/source3/lib/dbwrap/dbwrap_ctdb.c
index cc89e93081a2390f10681670cad66cd0ea4d28ec..10fe88d34196fa90e259c603ee14f86114579f43 100644
(file)
--- a/
source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/
source3/lib/dbwrap/dbwrap_ctdb.c
@@
-106,6
+106,7
@@
static int ctdb_async_ctx_init_internal(TALLOC_CTX *mem_ctx,
ret = ctdbd_setup_fde(ctdb_async_ctx.async_conn, ev);
if (ret != 0) {
DBG_ERR("ctdbd_setup_ev failed\n");
+ TALLOC_FREE(ctdb_async_ctx.async_conn);
return ret;
}