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-26 10:29:40 -0400
commit4a2ef67e652a2c9f2d666bca277616e077686760 (patch)
tree96a7f7a071e9af4d9498a6548bead9420ceb390b
parentcdc1c217ec82b35f1595c9bd696e5d891f347f77 (diff)
downloadsssd-4a2ef67e652a2c9f2d666bca277616e077686760.tar.gz
sssd-4a2ef67e652a2c9f2d666bca277616e077686760.tar.xz
sssd-4a2ef67e652a2c9f2d666bca277616e077686760.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 d05bab1e4..edd4f68c5 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -2161,6 +2161,7 @@ fail:
if (in_transaction) {
sysdb_transaction_cancel(sysdb);
}
+ talloc_free(tmp_ctx);
return ret;
}
@@ -4640,6 +4641,7 @@ errno_t save_rfc2307bis_user_memberships(
}
in_transaction = false;
+ talloc_free(tmp_ctx);
return EOK;
error:
@@ -4816,6 +4818,7 @@ static errno_t rfc2307bis_nested_groups_step(struct tevent_req *req)
rfc2307bis_nested_groups_process,
req);
+ talloc_free(tmp_ctx);
return EAGAIN;
error: