Commit d359837f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

widl: Avoid freeing input_name in pop_import.

The pointers are used in loc_info input_name without copy.
parent 194c002c
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment