aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa/ike_sa_id.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
committerMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
commit5113680f95e522c677cdd37072cfffbdca06831e (patch)
tree973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/charon/sa/ike_sa_id.c
parent6862128151fb78f63685a8da5575783c426d64a7 (diff)
downloadstrongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.bz2
strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.xz
- 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
Diffstat (limited to 'Source/charon/sa/ike_sa_id.c')
-rw-r--r--Source/charon/sa/ike_sa_id.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/charon/sa/ike_sa_id.c b/Source/charon/sa/ike_sa_id.c
index b4c285fcb..bf3a05d11 100644
--- a/Source/charon/sa/ike_sa_id.c
+++ b/Source/charon/sa/ike_sa_id.c
@@ -23,7 +23,6 @@
#include "ike_sa_id.h"
-#include <utils/allocator.h>
typedef struct private_ike_sa_id_t private_ike_sa_id_t;
@@ -155,7 +154,7 @@ static ike_sa_id_t* clone(private_ike_sa_id_t *this)
*/
static void destroy(private_ike_sa_id_t *this)
{
- allocator_free(this);
+ free(this);
}
/*
@@ -163,7 +162,7 @@ static void destroy(private_ike_sa_id_t *this)
*/
ike_sa_id_t * ike_sa_id_create(u_int64_t initiator_spi, u_int64_t responder_spi, bool is_initiator_flag)
{
- private_ike_sa_id_t *this = allocator_alloc_thing(private_ike_sa_id_t);
+ private_ike_sa_id_t *this = malloc_thing(private_ike_sa_id_t);
/* public functions */
this->public.set_responder_spi = (void(*)(ike_sa_id_t*,u_int64_t)) set_responder_spi;