diff options
author | Jeremy Allison <jra@samba.org> | 2017-07-24 13:12:20 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-26 21:35:22 +0200 |
commit | b1450af1c3c7ddc0573510706d605eedecaff61c (patch) | |
tree | 0e653470aa68376926f275fbe8fd939c787df7d6 /source3/rpcclient | |
parent | 1d6b98cdab4f0a400673cf967225214e858ab1ee (diff) | |
download | samba-b1450af1c3c7ddc0573510706d605eedecaff61c.tar.gz |
s3: rpcclient: Use event context as the talloc parent of the rpcclient_msg_ctx.
Give control over shutdown.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12932
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 835b288ee20..96c7410868a 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -1021,7 +1021,7 @@ out_free: goto done; } - nt_status = messaging_init_client(talloc_autofree_context(), + nt_status = messaging_init_client(ev_ctx, ev_ctx, &rpcclient_msg_ctx); if (geteuid() != 0 && @@ -1254,6 +1254,7 @@ done: cli_shutdown(cli); } popt_free_cmdline_auth_info(); + TALLOC_FREE(rpcclient_msg_ctx); TALLOC_FREE(ev_ctx); TALLOC_FREE(frame); return result; |