tcc_undefine_symbol(): free an alloced symbol
This commit is contained in:
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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user