mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#4052,4053 plug mem leaks
This commit is contained in:
parent
75d130ccae
commit
74eb401817
1 changed files with 17 additions and 0 deletions
|
|
@ -144,6 +144,13 @@ ldap_ld_free(
|
|||
ld->ld_options.ldo_defludp = NULL;
|
||||
}
|
||||
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
if ( ld->ld_options.ldo_peer != NULL ) {
|
||||
LDAP_FREE( ld->ld_options.ldo_peer );
|
||||
ld->ld_options.ldo_peer = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( ld->ld_options.ldo_tm_api != NULL ) {
|
||||
LDAP_FREE( ld->ld_options.ldo_tm_api );
|
||||
ld->ld_options.ldo_tm_api = NULL;
|
||||
|
|
@ -176,6 +183,16 @@ ldap_ld_free(
|
|||
}
|
||||
#endif
|
||||
|
||||
if ( ld->ld_options.ldo_sctrls != NULL ) {
|
||||
ldap_controls_free( ld->ld_options.ldo_sctrls );
|
||||
ld->ld_options.ldo_sctrls = NULL;
|
||||
}
|
||||
|
||||
if ( ld->ld_options.ldo_cctrls != NULL ) {
|
||||
ldap_controls_free( ld->ld_options.ldo_cctrls );
|
||||
ld->ld_options.ldo_cctrls = NULL;
|
||||
}
|
||||
|
||||
ber_sockbuf_free( ld->ld_sb );
|
||||
|
||||
#ifdef LDAP_R_COMPILE
|
||||
|
|
|
|||
Loading…
Reference in a new issue