From: Ondřej Kuzník Date: Mon, 23 Sep 2019 16:27:18 +0000 (+0100) Subject: ITS#9081 Do not leak sb (ITS#8755 regression) X-Git-Tag: OPENLDAP_REL_ENG_2_4_49~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6091d74863e5a4889f6c17ee643a7bda7f64a7fa;p=thirdparty%2Fopenldap.git ITS#9081 Do not leak sb (ITS#8755 regression) --- diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index b1597cb03d..08354ce7e3 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 );