| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix minor thread handle leak in pg_test_fsync on Windows |
| Date: | 2026-10-15 09:35:27 |
| Message-ID: | E1xHHrz-00000001iag-2Pzm@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix minor thread handle leak in pg_test_fsync on Windows
START_TIMER launches a new thread, but never closed the handle to it.
We don't need the handle after starting the thread, so just close it
right away. The program creates a timer for each benchmark phase, so
this isn't a big leak at the moment, but it could become more serious
if someone added START_TIMER to a loop. I didn't bother backpatching
though.
Author: Harrison Booth <harrisontbooth(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAAH-eSVFy2GySdYEAtd9Wp=Swka0TzZGkw2VrO8GTaq3ndcikQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/aa7b9cf132b013a4061e61c4393164f31d4f6930
Modified Files
--------------
src/bin/pg_test_fsync/pg_test_fsync.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-10-15 13:52:10 | pgsql: Use StringInfo to build the result in oidvectortypes() |
| Previous Message | Heikki Linnakangas | 2026-10-15 08:43:25 | pgsql: Fix checks for aborted updating transaction in multixids |