Commit 9b21d6e3 9b21d6e383511b887d375cda0d22ebd40d7f63a1 by Sergey Poznyakoff

(pop_source): Clear sieve_filename if context_stack is empty.

1 parent 92157482
...@@ -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
......