From 536f81b121b8384ecde49813b49f529bf7219c85 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 24 Oct 2011 10:13:02 +0200 Subject: Plug memory leaks in LDAP provider --- src/providers/ldap/sdap_async_accounts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index d05bab1e..edd4f68c 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: -- cgit