From e30d02c04efad31f97c35165a92105852c805d34 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 24 Oct 2011 10:31:17 +0200 Subject: Plug memory leaks in LDAP provider --- src/providers/ldap/sdap_async_initgroups.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c index 86fa14c62..f36080d48 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: -- cgit