tcc_undefine_symbol(): free an alloced symbol

master
seyko 2015-03-03 14:50:41 +03:00
parent 8d10c5788f
commit e2a8fd4520
1 changed files with 1 additions and 0 deletions

View File

@ -869,6 +869,7 @@ 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 */