From c87d4e5ddbbafea6f0d2dd5062041d41e80db877 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Oct 2010 23:49:06 +0200 Subject: s3: Remove talloc_autofree_context() from dmapi.c This is a place where an explicit dmapi_destroy_session would be needed. But we don't use a destructor for this. --- source3/smbd/dmapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') 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"); } -- cgit