- still one memory leak and segmentation fault

This commit is contained in:
Jan Hutter
2005-11-21 17:53:42 +00:00
parent 55f90b5d51
commit 0666a152c2
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -303,7 +303,6 @@ static status_t destroy (protected_ike_sa_t *this)
this->logger->log(this->logger, CONTROL | MOST, "Destroy logger of IKE_SA");
global_logger_manager->destroy_logger(global_logger_manager, this->logger);
allocator_free(this);
+1 -2
View File
@@ -234,7 +234,7 @@ static status_t destroy_logger (private_logger_manager_t *this,logger_t *logger)
{
linked_list_iterator_t *iterator;
status_t status;
status_t status = NOT_FOUND;
pthread_mutex_lock(&(this->mutex));
if (this->loggers->create_iterator(this->loggers,&iterator,TRUE) != SUCCESS)
@@ -263,7 +263,6 @@ static status_t destroy_logger (private_logger_manager_t *this,logger_t *logger)
}
}
iterator->destroy(iterator);
pthread_mutex_unlock(&(this->mutex));
return status;
}