mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
fix various memory leaks
This commit is contained in:
parent
b9269f30e8
commit
e0ff8d6782
@ -113,6 +113,7 @@ ldap_pvt_thread_create( ldap_pvt_thread_t * thread,
|
||||
(void) pthread_detach( *thread );
|
||||
}
|
||||
#endif
|
||||
pthread_attr_destroy(&attr);
|
||||
|
||||
#else
|
||||
rtn = pthread_create( thread, LDAP_INT_THREAD_ATTR_DEFAULT,
|
||||
|
@ -120,6 +120,7 @@ root_dse_info(
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
attr_merge( e, ad_supportedSASLMechanisms, vals );
|
||||
}
|
||||
charray_free( supportedSASLMechanisms );
|
||||
}
|
||||
|
||||
if ( default_referral != NULL ) {
|
||||
|
@ -713,6 +713,10 @@ int slap_sasl_bind(
|
||||
NULL, errstr, NULL, NULL );
|
||||
}
|
||||
|
||||
if( response.bv_len ) {
|
||||
ch_free( response.bv_val );
|
||||
}
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
|
||||
"slap_sasl_bind: rc=%d\n", rc ));
|
||||
|
@ -1550,6 +1550,10 @@ int caseExactIgnoreSubstringsFilter(
|
||||
}
|
||||
|
||||
if( nkeys == 0 ) {
|
||||
ch_free( sa->sa_final );
|
||||
ber_bvecfree( sa->sa_any );
|
||||
ch_free( sa->sa_initial );
|
||||
ch_free( sa );
|
||||
*keysp = NULL;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user