From e2a8fd4520de65b8a4ac8841c7b5b7001971657f Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 3 Mar 2015 14:50:41 +0300 Subject: [PATCH] tcc_undefine_symbol(): free an alloced symbol --- libtcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtcc.c b/libtcc.c index 72524eb..e5eefe4 100644 --- a/libtcc.c +++ b/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 */