summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
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:24:03 +0100
commit2e203229c43147f4999bfbdbbe50e875e3e01f00 (patch)
tree41423427391d91708af53142db79e5ffaf2c95a2 /src/providers/ldap
parent9ffff74ee5e65e751a5c5f4c1b57a77eb2bfce2a (diff)
downloadsssd-2e203229c43147f4999bfbdbbe50e875e3e01f00.tar.gz
sssd-2e203229c43147f4999bfbdbbe50e875e3e01f00.tar.xz
sssd-2e203229c43147f4999bfbdbbe50e875e3e01f00.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')
-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 f0185e41c..b461973bc 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;