Skip to content

Commit 3cd97b1

Browse files
committed
Free function signature upon function creation in jitplus.
1 parent eac85a2 commit 3cd97b1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2012-11-05 Aleksey Demakov <[email protected]>
2+
3+
* jitplus/jit-plus-function.cpp (create): free function signature.
4+
* tutorial/t3.c, tutorial/t3.c: free function signature.
5+
16
2012-10-30 Aleksey Demakov <[email protected]>
27

38
* tutorial/t1.c, tutorial/t2.c: free function signature.

jitplus/jit-plus-function.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ void jit_function::create()
187187
{
188188
jit_type_t signature = create_signature();
189189
create(signature);
190-
if(!func)
191-
{
192-
jit_type_free(signature);
193-
}
190+
jit_type_free(signature);
194191
}
195192
}
196193

0 commit comments

Comments
 (0)