Unified · Split
| @@ -869,6 +869,7 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s1, const char *sym) · 868 unmodified lines | ||
| 869 | 869 | /* undefine symbol by putting an invalid name */ |
| 870 | 870 | if (s) |
| 871 | 871 | define_undef(s); |
| 872 | + tcc_free(ts); | |
| 872 | 873 | } |
| 873 | 874 | |
| 874 | 875 | /* cleanup all static data used during compilation */ |