From 2ba219f781a304112398cc37fb382c762a1c7cf4 Mon Sep 17 00:00:00 2001 From: seyko Date: Sun, 3 May 2015 13:58:27 +0300 Subject: [PATCH] fix "tcc test.c -UAAA -UBBB" no need to call tcc_free() inside tcc_undefine_symbol() Otherwise we get segmentation fault inside tcc_delete() --- libtcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index 90dd1858..a14cd5f6 100644 --- a/libtcc.c +++ b/libtcc.c @@ -891,7 +891,6 @@ 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 */ -- 2.11.4.GIT