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_6_0~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edfc4e7ffec804c43a2c178f474e2bea9bd796a1;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 ca89930d12..aebc455183 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -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 );