]> granicus.if.org Git - postgresql/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:32 +0000 (13:13 +0200)
src/interfaces/ecpg/preproc/pgc.l

index e0f112d3c4fb057378221e4f5d8238ef11cd0e6a..c7d297a12a37491302c00b0e2e57474e7c026133 100644 (file)
@@ -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;
                        }