summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-02 23:40:48 +0200
committerVolker Lendecke <vl@samba.org>2010-10-03 10:45:57 +0200
commitda0ef65e04f3e4983f51bc6fb3c9297934da4447 (patch)
treef769acc415bcf71e9f41358312728be99ac6ccd1
parent41b54a893116d04fcfb3b7f8d114917bd0f1a437 (diff)
downloadsamba-da0ef65e04f3e4983f51bc6fb3c9297934da4447.tar.gz
samba-da0ef65e04f3e4983f51bc6fb3c9297934da4447.tar.bz2
samba-da0ef65e04f3e4983f51bc6fb3c9297934da4447.zip
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
-rw-r--r--source3/rpc_server/srv_samr_nt.c6
1 files changed, 2 insertions, 4 deletions
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;
}