scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 64d12d9252d124d68ac2455a83db8bbd20dfd914
parent 7b77d09eb9716ebb472547635cf8b2dba0908103
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 24 Apr 2014 15:31:16 +0200

Remove freesyms(NS_LABEL) in context

NS_LABEL symbols are already deleted in extdcl, so
it is a double free.

Diffstat:
symbol.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/symbol.c b/symbol.c @@ -57,8 +57,6 @@ context(Ctxfun *fun, Symbol *lbreak, Symbol *lcont, Symbol *lswitch) freesyms(NS_IDEN); freesyms(NS_TAG); - if (curctx == CTX_OUTER) - freesyms(NS_LABEL); } Symbol *