Fix memory leak in postmasterMain

Started by Henrik TJ17 days ago1 messages
Jump to latest
#1Henrik TJ
henrik@0x48.dk

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

Attachments:

v1-0001-Fix-userDoption-not-getting-freed-in-postmaster.patchtext/plain; charset=US-ASCII; name=v1-0001-Fix-userDoption-not-getting-freed-in-postmaster.patchDownload+2-1