tccpp: avoid double free with macro_ptr_allocated (after errors)
This commit is contained in:
parent
0d34c2136e
commit
d923e652f2
1 changed files with 1 additions and 0 deletions
1
tccpp.c
1
tccpp.c
|
@ -2771,6 +2771,7 @@ static void next(void)
|
||||||
} else {
|
} else {
|
||||||
/* end of macro string: free it */
|
/* end of macro string: free it */
|
||||||
tok_str_free(macro_ptr_allocated);
|
tok_str_free(macro_ptr_allocated);
|
||||||
|
macro_ptr_allocated = NULL;
|
||||||
macro_ptr = NULL;
|
macro_ptr = NULL;
|
||||||
}
|
}
|
||||||
goto redo;
|
goto redo;
|
||||||
|
|
Loading…
Add table
Reference in a new issue