diff options
author | Michael Meskes <meskes@postgresql.org> | 2013-09-08 12:49:54 +0200 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2013-09-08 12:49:54 +0200 |
commit | 579dae5bc0b87dfa53d0caa0ac57f0f5e739544f (patch) | |
tree | ad9cb8fa8dca198b7a5a576fe223344b1178d0e7 | |
parent | c155f654b4f755b4111bd9adb60559fe22526a10 (diff) | |
download | postgresql-579dae5bc0b87dfa53d0caa0ac57f0f5e739544f.tar.gz postgresql-579dae5bc0b87dfa53d0caa0ac57f0f5e739544f.zip |
Close file to no leak file descriptor memory. Found by Coverity.
-rw-r--r-- | src/interfaces/ecpg/preproc/pgc.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 0cc7ba6c4c9..5abb74f14e5 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -1355,6 +1355,7 @@ parse_include(void) /* if the command was "include_next" we have to disregard the first hit */ if (yyin && include_next) { + fclose (yyin); yyin = NULL; include_next = false; } |