summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-10-24 10:13:02 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-10-25 14:23:32 -0400
commit8d955c29b4f1f3694629175102cba9060d6f166a (patch)
treee92318ed302b60a137f06ebb2da495367e0e84ad
parentf1cf0484412586a0d56ae7aad93db1177adf5b02 (diff)
downloadsssd_unused-8d955c29b4f1f3694629175102cba9060d6f166a.tar.gz
sssd_unused-8d955c29b4f1f3694629175102cba9060d6f166a.tar.xz
sssd_unused-8d955c29b4f1f3694629175102cba9060d6f166a.zip
Plug memory leaks in LDAP provider
-rw-r--r--src/providers/ldap/sdap_async_accounts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 3cf4d577..6f1e5281 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -2297,6 +2297,7 @@ fail:
if (in_transaction) {
sysdb_transaction_cancel(sysdb);
}
+ talloc_free(tmp_ctx);
return ret;
}
@@ -5317,6 +5318,7 @@ errno_t save_rfc2307bis_user_memberships(
}
in_transaction = false;
+ talloc_free(tmp_ctx);
return EOK;
error:
@@ -5493,6 +5495,7 @@ static errno_t rfc2307bis_nested_groups_step(struct tevent_req *req)
rfc2307bis_nested_groups_process,
req);
+ talloc_free(tmp_ctx);
return EAGAIN;
error: