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_1_10~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef9d25aa3dc90bf303897ffc445c92420df4a6d;p=thirdparty%2Fpostgresql.git 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 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; }