postgres.git / summary / log / commit / refs

commit    3560dbcaac2f0ccb796512d6daf7ff3ea5bab5f0
Author:   Michael Meskes <meskes@postgresql.org>
Date:     Sun Sep 08 10:49:54 2013 +0000
First released in: 9.4.0, 9.0.14, 9.1.10, 9.2.5, 9.3.1

    Close file to no leak file descriptor memory. Found by Coverity.


src/interfaces/ecpg/preproc/pgc.l | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 0cc7ba6c4c9..5abb74f14e5 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; } [parent: fb843b2679d9]