From: Aleksey Demakov Date: Mon, 5 Nov 2012 09:27:51 +0000 (+0300) Subject: Free function signature upon function creation in jitplus. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3cd97b10304f0b4275d257a33a359e456f097735;p=francis%2Flibjit.git Free function signature upon function creation in jitplus. --- diff --git a/ChangeLog b/ChangeLog index a6f240a..483ca5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-11-05 Aleksey Demakov + + * jitplus/jit-plus-function.cpp (create): free function signature. + * tutorial/t3.c, tutorial/t3.c: free function signature. + 2012-10-30 Aleksey Demakov * tutorial/t1.c, tutorial/t2.c: free function signature. diff --git a/jitplus/jit-plus-function.cpp b/jitplus/jit-plus-function.cpp index 41ef66b..ecda7f2 100644 --- a/jitplus/jit-plus-function.cpp +++ b/jitplus/jit-plus-function.cpp @@ -187,10 +187,7 @@ void jit_function::create() { jit_type_t signature = create_signature(); create(signature); - if(!func) - { - jit_type_free(signature); - } + jit_type_free(signature); } }