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 10:49:54 +0000 (12:49 +0200)
src/interfaces/ecpg/preproc/pgc.l

index 0cc7ba6c4c9056e6dbdaafdd0bef6d9e0292d267..5abb74f14e5cf289b6b105e2b228ad75947721cf 100644 (file)
@@ -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;
            }