diff options
author | Michael Meskes <meskes@postgresql.org> | 2013-09-08 12:49:54 +0200 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2013-09-08 13:13:13 +0200 |
commit | 7612553e75f9ffb940b16a53004bec75f31803be (patch) | |
tree | d83504130efa2b401279e31418ff9d3a62542880 /src | |
parent | 1bb4b62d3e5209dae1f1e441b7f01a053b7587f4 (diff) |
Close file to no leak file descriptor memory. Found by Coverity.
Diffstat (limited to 'src')
-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 4d31f3bbe40..f2e7eddf86e 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; } |