aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/queues/job_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/queues/job_queue.c')
-rw-r--r--Source/charon/queues/job_queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/charon/queues/job_queue.c b/Source/charon/queues/job_queue.c
index 9d383d743..3640395ab 100644
--- a/Source/charon/queues/job_queue.c
+++ b/Source/charon/queues/job_queue.c
@@ -25,7 +25,6 @@
#include "job_queue.h"
-#include <utils/allocator.h>
#include <utils/linked_list.h>
@@ -130,7 +129,7 @@ static void job_queue_destroy (private_job_queue_t *this)
pthread_cond_destroy(&(this->condvar));
- allocator_free(this);
+ free(this);
}
/*
@@ -139,7 +138,7 @@ static void job_queue_destroy (private_job_queue_t *this)
*/
job_queue_t *job_queue_create()
{
- private_job_queue_t *this = allocator_alloc_thing(private_job_queue_t);
+ private_job_queue_t *this = malloc_thing(private_job_queue_t);
this->public.get_count = (int(*)(job_queue_t*))get_count;
this->public.get = (job_t*(*)(job_queue_t*))get;