From 5113680f95e522c677cdd37072cfffbdca06831e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 10 Apr 2006 08:07:38 +0000 Subject: - split up in libstrong, charon, stroke, testing done - new leak detective with malloc hook in library - useable, but needs improvements - logger_manager has now a single instance per library - allows use of loggers from any linking prog - a LOT of other things --- Source/charon/queues/event_queue.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Source/charon/queues/event_queue.c') diff --git a/Source/charon/queues/event_queue.c b/Source/charon/queues/event_queue.c index 741fe1460..ece9d1513 100644 --- a/Source/charon/queues/event_queue.c +++ b/Source/charon/queues/event_queue.c @@ -26,7 +26,6 @@ #include "event_queue.h" #include -#include #include @@ -64,7 +63,7 @@ struct event_t{ */ static void event_destroy(event_t *event) { - allocator_free(event); + free(event); } /** @@ -77,7 +76,7 @@ static void event_destroy(event_t *event) */ static event_t *event_create(timeval_t time, job_t *job) { - event_t *this = allocator_alloc_thing(event_t); + event_t *this = malloc_thing(event_t); this->destroy = event_destroy; this->time = time; @@ -326,7 +325,7 @@ static void event_queue_destroy(private_event_queue_t *this) pthread_cond_destroy(&(this->condvar)); - allocator_free(this); + free(this); } /* @@ -334,7 +333,7 @@ static void event_queue_destroy(private_event_queue_t *this) */ event_queue_t *event_queue_create() { - private_event_queue_t *this = allocator_alloc_thing(private_event_queue_t); + private_event_queue_t *this = malloc_thing(private_event_queue_t); this->public.get_count = (int (*) (event_queue_t *event_queue)) get_count; this->public.get = (job_t *(*) (event_queue_t *event_queue)) get; -- cgit v1.2.3