mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdbd_conn: fix a resource leak
When reinitializing the ctdb messaging subsystem we must free the ctdb connection fde. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12485 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
parent
91d027554e
commit
dd3868a5c7
@ -183,6 +183,8 @@ static int messaging_ctdbd_init_internal(struct messaging_context *msg_ctx,
|
||||
int ret, ctdb_fd;
|
||||
|
||||
if (reinit) {
|
||||
TALLOC_FREE(ctx->fde);
|
||||
|
||||
ret = ctdbd_reinit_connection(ctx,
|
||||
lp_ctdbd_socket(),
|
||||
lp_ctdb_timeout(),
|
||||
|
Loading…
Reference in New Issue
Block a user