From d5fc0f731d2eb6dcc11e680b2e77890b7ba01725 Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Wed, 16 Nov 2005 14:44:25 +0000 Subject: - tried to fix memory errors --- Source/charon/utils/allocator.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Source/charon/utils/allocator.h') diff --git a/Source/charon/utils/allocator.h b/Source/charon/utils/allocator.h index ab8f59bfd..8006911e7 100644 --- a/Source/charon/utils/allocator.h +++ b/Source/charon/utils/allocator.h @@ -209,11 +209,10 @@ */ #define report_memory_leaks(void) (global_allocator->report_memory_leaks(global_allocator)) #else - #define allocator_alloc(bytes) (malloc(bytes)) - + + #define allocator_alloc(bytes) (malloc(bytes)) chunk_t allocator_alloc_as_chunk(size_t bytes); - - #define allocator_realloc(old,bytes) (realloc(old,bytes)) + void * allocator_realloc(void * old, size_t newsize); #define allocator_free(pointer) (free(pointer)) void * allocator_clone_bytes(void * pointer, size_t size); void allocator_free_chunk(chunk_t chunk); -- cgit v1.2.3