fix "tcc test.c -UAAA -UBBB"

no need to call tcc_free() inside tcc_undefine_symbol()
    Otherwise we get segmentation fault inside tcc_delete()
master
seyko 2015-05-03 13:58:27 +03:00
parent 929d171f47
commit 2ba219f781
1 changed files with 0 additions and 1 deletions

View File

@ -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 */