mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 11:10:36 +08:00
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
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 */
|
/* undefine symbol by putting an invalid name */
|
||||||
if (s)
|
if (s)
|
||||||
define_undef(s);
|
define_undef(s);
|
||||||
tcc_free(ts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cleanup all static data used during compilation */
|
/* cleanup all static data used during compilation */
|
||||||
|
Loading…
Reference in New Issue
Block a user