tcc_undefine_symbol(): free an alloced symbol
This commit is contained in:
parent
8d10c5788f
commit
e2a8fd4520
1 changed files with 1 additions and 0 deletions
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 */
|
||||
if (s)
|
||||
define_undef(s);
|
||||
tcc_free(ts);
|
||||
}
|
||||
|
||||
/* cleanup all static data used during compilation */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue