Fix memory leak in postmasterMain
Henrik TJ <henrik@0x48.dk>
From: Henrik TJ <henrik@0x48.dk>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2026-02-21T14:27:15Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-userDoption-not-getting-freed-in-postmaster.patch (text/plain) patch v1-0001
Hi This is fairly inconsequential as memory leaks goes, but if -D is used when starting postgres, the memory allocated by stdrup() will never be freed. Found with valgrind. Technically, this also happens with output_config_variable (-C), but since postmaster prints and exits with that, there isn't much point in fixing it. best regards, Henrik