From: Michael Meskes Date: Sun, 8 Sep 2013 10:49:54 +0000 (+0200) Subject: Close file to no leak file descriptor memory. Found by Coverity. X-Git-Tag: REL9_0_14~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f092dbedf97ed2c6a03e3f4b2b3686f21cf2019;p=postgresql Close file to no leak file descriptor memory. Found by Coverity. --- diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index e0f112d3c4..c7d297a12a 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; }