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:32 +0200 |
| commit | 3f092dbedf97ed2c6a03e3f4b2b3686f21cf2019 (patch) | |
| tree | 03f9f4c9da1c85deea6dcf0103002bbb266ff224 /src | |
| parent | fde440ee2369e1d217114cb1195d222113bb0166 (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 e0f112d3c4f..c7d297a12a3 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -1352,6 +1352,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; } |
