mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#6568 plug cldap memleaks
This commit is contained in:
parent
c8c3847103
commit
d3a1be4e3f
@ -124,10 +124,14 @@ ldap_send_initial_request(
|
||||
if (ld->ld_options.ldo_cldapdn)
|
||||
ldap_memfree(ld->ld_options.ldo_cldapdn);
|
||||
ld->ld_options.ldo_cldapdn = ldap_strdup(dn);
|
||||
ber_free( ber, 1 );
|
||||
return 0;
|
||||
}
|
||||
if (msgtype != LDAP_REQ_ABANDON && msgtype != LDAP_REQ_SEARCH)
|
||||
{
|
||||
ber_free( ber, 1 );
|
||||
return LDAP_PARAM_ERROR;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef LDAP_R_COMPILE
|
||||
|
@ -154,6 +154,11 @@ ldap_ld_free(
|
||||
LDAP_FREE( ld->ld_options.ldo_peer );
|
||||
ld->ld_options.ldo_peer = NULL;
|
||||
}
|
||||
|
||||
if ( ld->ld_options.ldo_cldapdn != NULL ) {
|
||||
LDAP_FREE( ld->ld_options.ldo_cldapdn );
|
||||
ld->ld_options.ldo_cldapdn = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
|
Loading…
Reference in New Issue
Block a user