wpp: Clean state on error path.
This commit is contained in:
parent
e0d02dfcc8
commit
e132820330
@ -180,6 +180,7 @@ int wpp_parse( const char *input, FILE *output )
|
|||||||
else if (!(pp_status.file = wpp_callbacks->open(input, 1)))
|
else if (!(pp_status.file = wpp_callbacks->open(input, 1)))
|
||||||
{
|
{
|
||||||
ppy_error("Could not open %s\n", input);
|
ppy_error("Could not open %s\n", input);
|
||||||
|
pp_pop_define_state();
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user