From da0ef65e04f3e4983f51bc6fb3c9297934da4447 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Oct 2010 23:40:48 +0200 Subject: s3: Remove talloc_autofree_context() from srv_samr_nt.c The dispinfo structs need to survive within a process across pipe opens, but they don't have a special destructor --- source3/rpc_server/srv_samr_nt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index efcf18af81..bd82a3454e 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -331,8 +331,7 @@ static DISP_INFO *get_samr_dispinfo_by_sid(const struct dom_sid *psid) * Necessary only once, but it does not really hurt. */ if (builtin_dispinfo == NULL) { - builtin_dispinfo = talloc_zero( - talloc_autofree_context(), struct disp_info); + builtin_dispinfo = talloc_zero(NULL, struct disp_info); if (builtin_dispinfo == NULL) { return NULL; } @@ -347,8 +346,7 @@ static DISP_INFO *get_samr_dispinfo_by_sid(const struct dom_sid *psid) * Necessary only once, but it does not really hurt. */ if (domain_dispinfo == NULL) { - domain_dispinfo = talloc_zero( - talloc_autofree_context(), struct disp_info); + domain_dispinfo = talloc_zero(NULL, struct disp_info); if (domain_dispinfo == NULL) { return NULL; } -- cgit