(pop_source): Clear sieve_filename if context_stack is empty.
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -306,13 +306,14 @@ pop_source () | ... | @@ -306,13 +306,14 @@ pop_source () |
306 | #ifndef FLEX_SCANNER | 306 | #ifndef FLEX_SCANNER |
307 | lex_delete_buffer (current_buffer); | 307 | lex_delete_buffer (current_buffer); |
308 | #endif | 308 | #endif |
309 | if (sieve_filename) | ||
310 | free (sieve_filename); | ||
309 | if (!context_stack) | 311 | if (!context_stack) |
310 | { | 312 | { |
311 | yyin = NULL; | 313 | yyin = NULL; |
314 | sieve_filename = NULL; | ||
312 | return 1; | 315 | return 1; |
313 | } | 316 | } |
314 | if (sieve_filename) | ||
315 | free (sieve_filename); | ||
316 | /* Restore previous context */ | 317 | /* Restore previous context */ |
317 | sieve_filename = context_stack->filename; | 318 | sieve_filename = context_stack->filename; |
318 | sieve_line_num = context_stack->line + 1; /* #include rule did not increment | 319 | sieve_line_num = context_stack->line + 1; /* #include rule did not increment | ... | ... |
-
Please register or sign in to post a comment