1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

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 fde440ee23
commit 3f092dbedf

View File

@ -1352,6 +1352,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;
} }