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
parent 87397b345b
commit edfc4e7ffe

View file

@ -192,6 +192,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 );