ITS#9081 Do not leak sb (ITS#8755 regression)

This commit is contained in:
Ondřej Kuzník 2019-09-23 17:27:18 +01:00
parent 81025cc8bf
commit 639e5f15fd

View file

@ -134,6 +134,7 @@ ldap_ld_free(
/* Should already be closed by ldap_free_connection which knows not to free /* Should already be closed by ldap_free_connection which knows not to free
* this one */ * this one */
ber_int_sb_destroy( ld->ld_sb ); ber_int_sb_destroy( ld->ld_sb );
LBER_FREE( ld->ld_sb );
LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex ); LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );