widl: Avoid freeing input_name in pop_import.
The pointers are used in loc_info input_name without copy.
This commit is contained in:
parent
194c002c6e
commit
d359837fcc
1 changed files with 1 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue