diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-09 09:44:43 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-20 18:09:19 +0200 |
commit | 97a7aec44aafde75208aaad24b42de1c93cdb97b (patch) | |
tree | 8865755e1895e272fc5882fdf299cce9d95f2bb5 /lib | |
parent | e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6 (diff) | |
download | samba-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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uid_wrapper/uid_wrapper.c | 4 |
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; |