summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-09 09:44:43 +0200
committerVolker Lendecke <vl@samba.org>2010-10-20 18:09:19 +0200
commit97a7aec44aafde75208aaad24b42de1c93cdb97b (patch)
tree8865755e1895e272fc5882fdf299cce9d95f2bb5
parente1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6 (diff)
downloadsamba-97a7aec44aafde75208aaad24b42de1c93cdb97b.tar.gz
samba-97a7aec44aafde75208aaad24b42de1c93cdb97b.tar.bz2
samba-97a7aec44aafde75208aaad24b42de1c93cdb97b.zip
uid_wrapper: The gid wrapper does not require a destructor
Don't use talloc_autofree_context
-rw-r--r--lib/uid_wrapper/uid_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c
index 93ebb7c189..c67679777c 100644
--- a/lib/uid_wrapper/uid_wrapper.c
+++ b/lib/uid_wrapper/uid_wrapper.c
@@ -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;