tccpp: avoid double free with macro_ptr_allocated (after errors)
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user