diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
commit | 5113680f95e522c677cdd37072cfffbdca06831e (patch) | |
tree | 973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/charon/encoding/payloads/ike_header.c | |
parent | 6862128151fb78f63685a8da5575783c426d64a7 (diff) | |
download | strongswan-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/encoding/payloads/ike_header.c')
-rw-r--r-- | Source/charon/encoding/payloads/ike_header.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/charon/encoding/payloads/ike_header.c b/Source/charon/encoding/payloads/ike_header.c index 6114c8de4..ad46d3d29 100644 --- a/Source/charon/encoding/payloads/ike_header.c +++ b/Source/charon/encoding/payloads/ike_header.c @@ -26,7 +26,6 @@ #include "ike_header.h" #include <encoding/payloads/encodings.h> -#include <utils/allocator.h> typedef struct private_ike_header_t private_ike_header_t; @@ -324,7 +323,7 @@ static void set_message_id(private_ike_header_t *this, u_int32_t message_id) */ static void destroy(ike_header_t *this) { - allocator_free(this); + free(this); } /** @@ -365,7 +364,7 @@ static size_t get_length(payload_t *this) */ ike_header_t *ike_header_create() { - private_ike_header_t *this = allocator_alloc_thing(private_ike_header_t); + private_ike_header_t *this = malloc_thing(private_ike_header_t); this->public.payload_interface.verify = (status_t (*) (payload_t *))verify; this->public.payload_interface.get_encoding_rules = get_encoding_rules; |