partial fulfilment of ITS#1710

This commit is contained in:
Pierangelo Masarati 2002-04-02 12:27:06 +00:00
parent 49ab777bbb
commit 090ef02589
2 changed files with 11 additions and 0 deletions

View File

@ -257,6 +257,7 @@ monitor_cache_release(
ldap_pvt_thread_mutex_unlock( &mi->mi_cache_mutex );
ch_free( mc );
ldap_pvt_thread_mutex_unlock( &mp->mp_mutex );
ldap_pvt_thread_mutex_destroy( &mp->mp_mutex );
ch_free( mp );
e->e_private = NULL;

View File

@ -369,6 +369,16 @@ monitor_subsys_conn_create(
c = connection_next( c, &connindex )) {
if ( conn_create( c, &e ) || e == NULL ) {
connection_done(c);
for ( ; e_tmp != NULL; ) {
mp = ( struct monitorentrypriv * )e_tmp->e_private;
e = mp->mp_next;
ch_free( mp );
e_tmp->e_private = NULL;
entry_free( e_tmp );
e_tmp = e;
}
return( -1 );
}
mp = ( struct monitorentrypriv * )e->e_private;