diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-15 07:11:33 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-19 14:24:03 +0100 |
commit | 2e203229c43147f4999bfbdbbe50e875e3e01f00 (patch) | |
tree | 41423427391d91708af53142db79e5ffaf2c95a2 /src/providers/ldap | |
parent | 9ffff74ee5e65e751a5c5f4c1b57a77eb2bfce2a (diff) | |
download | sssd-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.c | 2 |
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; |