]> granicus.if.org Git - postgresql/commitdiff
Free ignorelist after each regression test schedule.
authorKevin Grittner <kgrittn@postgresql.org>
Wed, 13 Nov 2013 15:01:06 +0000 (09:01 -0600)
committerKevin Grittner <kgrittn@postgresql.org>
Wed, 13 Nov 2013 15:01:06 +0000 (09:01 -0600)
It's a trivial amount of RAM held until the end of the regression
test run; but it's probably worth fixing to silence future warnings
from code analyzers.

This was the only memory leak pointed out by clang's static code
analysis tool.

src/test/regress/pg_regress.c

index a902e9b8bec17fcc9e357002d4943990ce0b1af5..e8dec46e23a051bfd4205f7c14ea1ce4655fdb30 100644 (file)
@@ -1655,6 +1655,8 @@ run_schedule(const char *schedule, test_function tfunc)
                }
        }
 
+       free_stringlist(&ignorelist);
+
        fclose(scf);
 }