From: Aleksey Demakov Date: Wed, 28 May 2008 06:13:47 +0000 (+0000) Subject: fix VirtualFree arguments; fix function signature leak; X-Git-Tag: before.move.to.git~66 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=fe88d76af50341d2bddc708423fee66939003228;p=francis%2Flibjit.git fix VirtualFree arguments; fix function signature leak; --- diff --git a/ChangeLog b/ChangeLog index 043b922..b62edba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-28 Juan Jesus Garcia de Soria + + * jit/jit-alloc.c (jit_free_exec): fix VirtualFree arguments. + + * jit/jit-function.c (_jit_function_destroy): free signature on the + function destruction. + 2008-05-27 Aleksey Demakov * jit/jit-internal.h (jit_builder_t): diff --git a/jit/jit-alloc.c b/jit/jit-alloc.c index 6713b64..7700769 100644 --- a/jit/jit-alloc.c +++ b/jit/jit-alloc.c @@ -174,7 +174,7 @@ void jit_free_exec(void *ptr, unsigned int size) if(ptr) { #if defined(JIT_WIN32_PLATFORM) - VirtualFree(ptr, size, MEM_DECOMMIT | MEM_RELEASE); + VirtualFree(ptr, 0, MEM_RELEASE); #elif defined(JIT_USE_MMAP) munmap(ptr, size); #else diff --git a/jit/jit-function.c b/jit/jit-function.c index 9df5f7a..48d2db5 100644 --- a/jit/jit-function.c +++ b/jit/jit-function.c @@ -255,6 +255,7 @@ void _jit_function_destroy(jit_function_t func) } _jit_function_free_builder(func); jit_meta_destroy(&(func->meta)); + jit_type_free(func->signature); jit_free(func); }