forked from Mirrors/tinycc
tcc_undefine_symbol(): free an alloced symbol
parent
8d10c5788f
commit
e2a8fd4520
1
libtcc.c
1
libtcc.c
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue