diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 07:04:15 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 07:04:15 +0000 |
commit | 6e67d74a9b511b16c7482a7ffe2f2d8c66fde24b (patch) | |
tree | 3194e48555ad6336c014e12d399a2085a4b2dfa0 /Source/charon/event_queue.c | |
parent | 01d06501d9b15b3aab24ef3b9455dc2b8840666a (diff) | |
download | strongswan-6e67d74a9b511b16c7482a7ffe2f2d8c66fde24b.tar.bz2 strongswan-6e67d74a9b511b16c7482a7ffe2f2d8c66fde24b.tar.xz |
- LEAK_DETECTIVE activated
- memory leak in event_queue_t fixed
Diffstat (limited to 'Source/charon/event_queue.c')
-rw-r--r-- | Source/charon/event_queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/charon/event_queue.c b/Source/charon/event_queue.c index 132e489a5..243186c40 100644 --- a/Source/charon/event_queue.c +++ b/Source/charon/event_queue.c @@ -280,6 +280,7 @@ static status_t add_absolute(private_event_queue_t *this, job_t *job, timeval_t status = iterator->has_next(iterator,&has_next); if (status != SUCCESS) { + iterator->destroy(iterator); break; } @@ -295,8 +296,7 @@ static status_t add_absolute(private_event_queue_t *this, job_t *job, timeval_t if (time_difference(&(event->time), &(current_event->time)) <= 0) { /* my event has to be fired before the current event in list */ - status = this->list->insert_before(this->list,current_list_element,event); - + status = this->list->insert_before(this->list,current_list_element,event); break; } @@ -306,6 +306,7 @@ static status_t add_absolute(private_event_queue_t *this, job_t *job, timeval_t break; } } + iterator->destroy(iterator); break; } |