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>
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)) {