diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-10-05 13:25:24 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-06 10:57:20 -0400 |
commit | 3620e966029229a7c246d1b79b0d3977699e6ab9 (patch) | |
tree | fb2a880ab5827950e2b841aeb0d1d362dee9c6df | |
parent | 3a78191eed4d66b54c803565d2cd4eb723523ace (diff) | |
download | sssd-3620e966029229a7c246d1b79b0d3977699e6ab9.tar.gz sssd-3620e966029229a7c246d1b79b0d3977699e6ab9.tar.xz sssd-3620e966029229a7c246d1b79b0d3977699e6ab9.zip |
Fix small bug where TALLOC_CTX could end up unfreed.
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index 40b213d84..2e1235cea 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -2056,14 +2056,14 @@ static errno_t sdap_nested_group_populate_users(struct sysdb_ctx *sysdb, static const char *search_attrs[] = { SYSDB_NAME, NULL }; size_t count; - tmp_ctx = talloc_new(NULL); - if (!tmp_ctx) return ENOMEM; - if (num_users == 0) { /* Nothing to do if there are no users */ return EOK; } + tmp_ctx = talloc_new(NULL); + if (!tmp_ctx) return ENOMEM; + ret = sysdb_transaction_start(sysdb); if (ret) { DEBUG(1, ("Failed to start transaction!\n")); |