]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
Free function signature upon function creation in jitplus.
authorAleksey Demakov <ademakov@gmail.com>
Mon, 5 Nov 2012 09:27:51 +0000 (12:27 +0300)
committerAleksey Demakov <ademakov@gmail.com>
Mon, 5 Nov 2012 09:27:51 +0000 (12:27 +0300)
ChangeLog
jitplus/jit-plus-function.cpp

index a6f240affe519683510dfbffbfe7a22f0fbdea75..483ca5e91b947a313d6a100661c5e1f20544760b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-05  Aleksey Demakov  <ademakov@gmail.com>
+
+       * jitplus/jit-plus-function.cpp (create): free function signature.
+       * tutorial/t3.c, tutorial/t3.c: free function signature.
+
 2012-10-30  Aleksey Demakov  <ademakov@gmail.com>
 
        * tutorial/t1.c, tutorial/t2.c: free function signature.
index 41ef66bef90fd6936a78f620954048ca7f53eb8b..ecda7f28f1b81dede4a647418d401f65bf8ec2b6 100644 (file)
@@ -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);
        }
 }