pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove memory leaks in isolationtester. 6+ messages / 1 participants [nested] [flat]
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/642c0697c96b9c6ba5d194653a329f7820565f01 Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2d094486541acd8baee3af7579d4606f78256165 Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bc031cf133b786ab3c3def9d28b044b85a743edc Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1acab120968a2132e2c40a8ed023e4079867f824 Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7676d95949b1e33c1d20325c0231fc774364136e Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Remove memory leaks in isolationtester. @ 2021-06-27 16:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2021-06-27 16:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/de589c11297c575fa88efe69f78394d2c93522dc Modified Files -------------- src/test/isolation/isolationtester.c | 20 +++++++++++++------- src/test/isolation/specscanner.l | 8 ++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-06-27 16:45 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us> 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us> 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us> 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us> 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us> 2021-06-27 16:45 pgsql: Remove memory leaks in isolationtester. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox