widl: Avoid freeing input_name in pop_import.

The pointers are used in loc_info input_name without copy.
This commit is contained in:
Rémi Bernon 2023-03-17 13:47:01 +01:00 committed by Alexandre Julliard
parent 194c002c6e
commit d359837fcc

View file

@ -512,7 +512,7 @@ void pop_import(void)
if (yyin) fclose( yyin );
yy_delete_buffer( YY_CURRENT_BUFFER );
yy_switch_to_buffer( state->buffer );
free( input_name );
input_name = state->input_name;
line_number = state->line_number;
free( state );
@ -556,7 +556,6 @@ static void switch_to_acf(void)
if (yyin) fclose( yyin );
yy_delete_buffer( YY_CURRENT_BUFFER );
free( input_name );
input_name = xstrdup( acf_name );
file = open_input_file( input_name );