uid_wrapper: The gid wrapper does not require a destructor
authorVolker Lendecke <vl@samba.org>
Sat, 9 Oct 2010 07:44:43 +0000 (09:44 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 20 Oct 2010 16:09:19 +0000 (18:09 +0200)
Don't use talloc_autofree_context

lib/uid_wrapper/uid_wrapper.c

index 93ebb7c1897c3aeb63d8b336ace8417c61dc0b84..c67679777c5fdaefa7ad442181472bb4d2897e53 100644 (file)
@@ -52,7 +52,7 @@ static void uwrap_init(void)
                uwrap.enabled = true;
                /* put us in one group */
                uwrap.ngroups = 1;
-               uwrap.groups = talloc_array(talloc_autofree_context(), gid_t, 1);
+               uwrap.groups = talloc_array(NULL, gid_t, 1);
                uwrap.groups[0] = 0;
        }
 }
@@ -116,7 +116,7 @@ _PUBLIC_ int uwrap_setgroups(size_t size, const gid_t *list)
        uwrap.groups = NULL;
 
        if (size != 0) {
-               uwrap.groups = talloc_array(talloc_autofree_context(), gid_t, size);
+               uwrap.groups = talloc_array(NULL, gid_t, size);
                if (uwrap.groups == NULL) {
                        errno = ENOMEM;
                        return -1;