fix "tcc test.c -UAAA -UBBB"
no need to call tcc_free() inside tcc_undefine_symbol() Otherwise we get segmentation fault inside tcc_delete()
This commit is contained in:
parent
929d171f47
commit
2ba219f781
1 changed files with 0 additions and 1 deletions
1
libtcc.c
1
libtcc.c
|
@ -891,7 +891,6 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s1, const char *sym)
|
|||
/* undefine symbol by putting an invalid name */
|
||||
if (s)
|
||||
define_undef(s);
|
||||
tcc_free(ts);
|
||||
}
|
||||
|
||||
/* cleanup all static data used during compilation */
|
||||
|
|
Loading…
Reference in a new issue