diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-09 13:28:49 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-11 20:30:13 +0200 |
commit | 3429829a42c760e59fcf67463f72002f792cb087 (patch) | |
tree | 4ec871f57317cf6bd17a6af2e320f548d6b31b41 /source4 | |
parent | 34f616fc6f48a4182f7e5125a080de205925c7e4 (diff) | |
download | samba-3429829a42c760e59fcf67463f72002f792cb087.tar.gz |
s4: auth: Remove a talloc_autofree_context() use.
Use NULL here, not the autofree context for this
static pointer. The destructor prevents freeing this
memory anyway.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/system_session.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c index 3b9edd779df..4c5290db71a 100644 --- a/source4/auth/system_session.c +++ b/source4/auth/system_session.c @@ -51,7 +51,12 @@ _PUBLIC_ struct auth_session_info *system_session(struct loadparm_context *lp_ct return static_session; } - nt_status = auth_system_session_info(talloc_autofree_context(), + /* + * Use NULL here, not the autofree context for this + * static pointer. The destructor prevents freeing this + * memory anyway. + */ + nt_status = auth_system_session_info(NULL, lp_ctx, &static_session); if (!NT_STATUS_IS_OK(nt_status)) { |