From 8d955c29b4f1f3694629175102cba9060d6f166a 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 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: -- cgit