diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-06-27 12:45:04 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-06-27 12:45:04 -0400 |
commit | 2d094486541acd8baee3af7579d4606f78256165 (patch) | |
tree | 502c79cc606893cf1d592ef051309b5188dc23d3 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 88274a7a314eb521b1ee924f2872872fce289fdf (diff) | |
download | postgresql-2d094486541acd8baee3af7579d4606f78256165.tar.gz postgresql-2d094486541acd8baee3af7579d4606f78256165.zip |
Remove memory leaks in isolationtester.
specscanner.l leaked a kilobyte of memory per token of the spec file.
Apparently somebody thought that the introductory code block would be
executed once; but it's once per yylex() call.
A couple of functions in isolationtester.c leaked small amounts of
memory due to not bothering to free one-time allocations. Might
as well improve these so that valgrind gives this program a clean
bill of health. Also get rid of an ugly static variable.
Coverity complained about one of the one-time leaks, which led me
to try valgrind'ing isolationtester, which led to discovery of the
larger leak.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions