Close file to no leak file descriptor memory. Found by Coverity.

This commit is contained in:
Michael Meskes 2013-09-08 12:49:54 +02:00
parent c155f654b4
commit 579dae5bc0

View File

@ -1355,6 +1355,7 @@ parse_include(void)
/* if the command was "include_next" we have to disregard the first hit */ /* if the command was "include_next" we have to disregard the first hit */
if (yyin && include_next) if (yyin && include_next)
{ {
fclose (yyin);
yyin = NULL; yyin = NULL;
include_next = false; include_next = false;
} }