tccpp: avoid double free with macro_ptr_allocated (after errors)

tcc-xref
grischka 2009-06-19 15:12:58 +02:00
parent 0d34c2136e
commit d923e652f2
1 changed files with 1 additions and 0 deletions

View File

@ -2771,6 +2771,7 @@ static void next(void)
} else {
/* end of macro string: free it */
tok_str_free(macro_ptr_allocated);
macro_ptr_allocated = NULL;
macro_ptr = NULL;
}
goto redo;