s3: Remove talloc_autofree_context() from srv_samr_nt.c
authorVolker Lendecke <vl@samba.org>
Sat, 2 Oct 2010 21:40:48 +0000 (23:40 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 3 Oct 2010 08:45:57 +0000 (10:45 +0200)
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

index efcf18af81d8efc1649788e44eafe7676505442e..bd82a3454ea8a7b9b9e0e0b45236c0c7d7bc6a7e 100644 (file)
@@ -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;
                        }