summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/dmapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/dmapi.c b/source3/smbd/dmapi.c
index 8c3939f99a..e213d73e0a 100644
--- a/source3/smbd/dmapi.c
+++ b/source3/smbd/dmapi.c
@@ -188,8 +188,7 @@ const void *dmapi_get_current_session(void)
bool dmapi_have_session(void)
{
if (!dmapi_ctx) {
- dmapi_ctx = talloc(talloc_autofree_context(),
- struct smbd_dmapi_context);
+ dmapi_ctx = talloc(struct smbd_dmapi_context);
if (!dmapi_ctx) {
exit_server("unable to allocate smbd_dmapi_context");
}