plug leaks

This commit is contained in:
Pierangelo Masarati 2005-12-06 23:10:14 +00:00
parent e0a28ee53f
commit ed0bed72b9
2 changed files with 4 additions and 0 deletions

View File

@ -2419,6 +2419,9 @@ syncprov_db_destroy(
syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private;
if ( si ) {
if ( si->si_logs ) {
ch_free( si->si_logs );
}
ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex );
ldap_pvt_thread_mutex_destroy( &si->si_ops_mutex );
ldap_pvt_thread_mutex_destroy( &si->si_csn_mutex );

View File

@ -695,6 +695,7 @@ do_syncrep2(
if ( BER_BVISEMPTY( &syncUUID ) ) {
Debug( LDAP_DEBUG_ANY, "do_syncrep2: "
"got empty syncUUID\n", 0, 0, 0 );
ldap_controls_free( rctrls );
rc = -1;
goto done;
}