aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2013-09-08 12:49:54 +0200
committerMichael Meskes <meskes@postgresql.org>2013-09-08 13:13:22 +0200
commitaef9d25aa3dc90bf303897ffc445c92420df4a6d (patch)
tree36b4426b0e76a935c6ab37eb5e972a733836d92c /src
parent8e67a28eea9b7d068bdbe8fc9978f7fb2edda54b (diff)
downloadpostgresql-aef9d25aa3dc90bf303897ffc445c92420df4a6d.tar.gz
postgresql-aef9d25aa3dc90bf303897ffc445c92420df4a6d.zip
Close file to no leak file descriptor memory. Found by Coverity.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index 019b70bbaf9..2fdd5674928 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -1354,6 +1354,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;
}