]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Close file to no leak file descriptor memory. Found by Coverity.
authorMichael Meskes <meskes@postgresql.org>
Sun, 8 Sep 2013 10:49:54 +0000 (12:49 +0200)
committerMichael Meskes <meskes@postgresql.org>
Sun, 8 Sep 2013 11:13:22 +0000 (13:13 +0200)
src/interfaces/ecpg/preproc/pgc.l

index 019b70bbaf931df48151f6e35ffe07a8a693ff70..2fdd56749284da084398924e12f6183d4db44788 100644 (file)
@@ -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;
                        }