From: Howard Chu Date: Wed, 21 Apr 2021 17:06:26 +0000 (+0100) Subject: ITS#9530 ldo_defbase now must be freed in ldap_ld_free() X-Git-Tag: OPENLDAP_REL_ENG_2_4_59~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5452fb154eaabc46992402a4f1bb1081bc367157;p=thirdparty%2Fopenldap.git ITS#9530 ldo_defbase now must be freed in ldap_ld_free() --- diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index 11797c20c4..a25d05d638 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -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 );