summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_groups.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-11-15 07:11:33 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 14:21:00 +0100
commitc9e8154b32fb3fea639478c203bb1079c18e7bca (patch)
tree015ab1f80a1f5833d92d242f15c045350105428e /src/providers/ldap/sdap_async_groups.c
parentdae0a9fa4a2c76c964c06b6607d78498cdb8d799 (diff)
downloadsssd-c9e8154b32fb3fea639478c203bb1079c18e7bca.tar.gz
sssd-c9e8154b32fb3fea639478c203bb1079c18e7bca.tar.xz
sssd-c9e8154b32fb3fea639478c203bb1079c18e7bca.zip
LDAP: Allocate the temporary context on NULL, not memctx
Allocating temporary context on NULL helps vind memory leaks with valgrind and avoid growing memory over time by allocating on a long-lived context.
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 3948a7436..ce08b88a8 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -226,7 +226,7 @@ static int sdap_save_group(TALLOC_CTX *memctx,
hash_key_t key;
hash_value_t value;
- tmpctx = talloc_new(memctx);
+ tmpctx = talloc_new(NULL);
if (!tmpctx) {
ret = ENOMEM;
goto fail;