From 3cd97b10304f0b4275d257a33a359e456f097735 Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Mon, 5 Nov 2012 12:27:51 +0300 Subject: [PATCH] Free function signature upon function creation in jitplus. --- ChangeLog | 5 +++++ jitplus/jit-plus-function.cpp | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) 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); } } -- 2.47.3