]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9530 ldo_defbase now must be freed in ldap_ld_free()
authorHoward Chu <hyc@openldap.org>
Wed, 21 Apr 2021 17:06:26 +0000 (18:06 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 30 Apr 2021 16:58:38 +0000 (16:58 +0000)
libraries/libldap/unbind.c

index 11797c20c4f66fa369231ed0fe1d7bf3d34a2b12..a25d05d638e7efc82f5d81e7e2c79690c0fb70b0 100644 (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 );