From 639e5f15fdeaf46941ec6da5c5d5f7ef707a976c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 23 Sep 2019 17:27:18 +0100 Subject: [PATCH] ITS#9081 Do not leak sb (ITS#8755 regression) --- libraries/libldap/unbind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index a390717cac..3d394bc273 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -134,6 +134,7 @@ ldap_ld_free( /* Should already be closed by ldap_free_connection which knows not to free * this one */ ber_int_sb_destroy( ld->ld_sb ); + LBER_FREE( ld->ld_sb ); LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );