- still one memory leak and segmentation fault
This commit is contained in:
@@ -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");
|
this->logger->log(this->logger, CONTROL | MOST, "Destroy logger of IKE_SA");
|
||||||
|
|
||||||
|
|
||||||
global_logger_manager->destroy_logger(global_logger_manager, this->logger);
|
global_logger_manager->destroy_logger(global_logger_manager, this->logger);
|
||||||
|
|
||||||
allocator_free(this);
|
allocator_free(this);
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ static status_t destroy_logger (private_logger_manager_t *this,logger_t *logger)
|
|||||||
{
|
{
|
||||||
|
|
||||||
linked_list_iterator_t *iterator;
|
linked_list_iterator_t *iterator;
|
||||||
status_t status;
|
status_t status = NOT_FOUND;
|
||||||
|
|
||||||
pthread_mutex_lock(&(this->mutex));
|
pthread_mutex_lock(&(this->mutex));
|
||||||
if (this->loggers->create_iterator(this->loggers,&iterator,TRUE) != SUCCESS)
|
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);
|
iterator->destroy(iterator);
|
||||||
|
|
||||||
pthread_mutex_unlock(&(this->mutex));
|
pthread_mutex_unlock(&(this->mutex));
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user