ITS#9530 ldo_defbase now must be freed in ldap_ld_free()

This commit is contained in:
Howard Chu 2021-04-21 18:06:26 +01:00 committed by Quanah Gibson-Mount
parent 32e965c271
commit 5452fb154e

View file

@ -187,6 +187,11 @@ ldap_ld_free(
}
#endif
if ( ld->ld_options.ldo_defbase != NULL ) {
LDAP_FREE( ld->ld_options.ldo_defbase );
ld->ld_options.ldo_defbase = NULL;
}
#ifdef HAVE_CYRUS_SASL
if ( ld->ld_options.ldo_def_sasl_mech != NULL ) {
LDAP_FREE( ld->ld_options.ldo_def_sasl_mech );