summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-10-24 10:31:17 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-10-25 14:23:52 -0400
commite30d02c04efad31f97c35165a92105852c805d34 (patch)
treef7cce415f02adb8c2f6defd877fc7c4ee2a42282 /src
parent52261fe16203dec6e6f69177c6d0a810b47d073f (diff)
downloadsssd-e30d02c04efad31f97c35165a92105852c805d34.tar.gz
sssd-e30d02c04efad31f97c35165a92105852c805d34.tar.bz2
sssd-e30d02c04efad31f97c35165a92105852c805d34.zip
Plug memory leaks in LDAP provider
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 86fa14c6..f36080d4 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -156,6 +156,7 @@ fail:
if (in_transaction) {
sysdb_transaction_cancel(sysdb);
}
+ talloc_free(tmp_ctx);
return ret;
}
@@ -1643,6 +1644,7 @@ errno_t save_rfc2307bis_user_memberships(
}
in_transaction = false;
+ talloc_free(tmp_ctx);
return EOK;
error:
@@ -1820,6 +1822,7 @@ static errno_t rfc2307bis_nested_groups_step(struct tevent_req *req)
rfc2307bis_nested_groups_process,
req);
+ talloc_free(tmp_ctx);
return EAGAIN;
error: