We were not freeing tmp_ctx on some places in the LDAP provider as well..

https://fedorahosted.org/sssd/ticket/1055
From 0f5c2d8cef3b9e2f6eebbc2b40047d7c8ac04f48 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Mon, 24 Oct 2011 10:31:17 +0200
Subject: [PATCH] Plug memory leaks in LDAP provider

---
 src/providers/ldap/sdap_async_initgroups.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 86fa14c..f36080d 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:
-- 
1.7.6.4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to