From ceb2df11a34aa182b2708eabf9c5ac34ea52dada Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 25 Apr 2013 00:37:58 +0200 Subject: SSSD leaks memory when following referrals --- src/providers/ldap/sdap_async_connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 648c9a1e..f3ddf4f6 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1696,6 +1696,7 @@ static int sdap_rebind_proc(LDAP *ldap, LDAP_CONST char *url, ber_tag_t request, (ret == LDAP_SUCCESS ? "Successfully" : "Failed to"), url)); done: + if (ctrls[0]) ldap_control_free(ctrls[0]); talloc_free(tmp_ctx); return ret; -- cgit