diff options
Diffstat (limited to 'src/charon/sa/ike_sa_manager.c')
-rw-r--r-- | src/charon/sa/ike_sa_manager.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/charon/sa/ike_sa_manager.c b/src/charon/sa/ike_sa_manager.c index c9bdac460..0945b6b72 100644 --- a/src/charon/sa/ike_sa_manager.c +++ b/src/charon/sa/ike_sa_manager.c @@ -851,11 +851,7 @@ static void destroy(private_ike_sa_manager_t *this) DBG2(SIG_DBG_MGR, "destroy all entries"); /* Step 4: destroy all entries */ - while (list->remove_last(list, (void**)&entry) == SUCCESS) - { - entry_destroy(entry); - } - list->destroy(list); + list->destroy_function(list, (void*)entry_destroy); pthread_mutex_unlock(&(this->mutex)); this->randomizer->destroy(this->randomizer); |