Include files are not closed in `yylex_destroy()`, e.g.: ````c while (cfg_include_stack_ptr > 0) { --cfg_include_stack_ptr; fclose(cfg_include_stack[cfg_include_stack_ptr].fp); } ```` And `cfg_include_stack_ptr = 0;` is not reseted in `yy_init_globals()`. Best wishes!