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 | bc031cf133b786ab3c3def9d28b044b85a743edc (patch) | |
tree | 7a981548c7919e2bf0e2e6da036957a5fab066b9 /src/tutorial/advanced.source | |
parent | aa2734f5bcdf7d2860fb6a54104b3ed12573de83 (diff) | |
download | postgresql-bc031cf133b786ab3c3def9d28b044b85a743edc.tar.gz postgresql-bc031cf133b786ab3c3def9d28b044b85a743edc.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 'src/tutorial/advanced.source')
0 files changed, 0 insertions, 0 deletions