| From: | Henrik TJ <henrik(at)0x48(dot)dk> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Fix memory leak in postmasterMain |
| Date: | 2026-02-21 14:27:15 |
| Message-ID: | e84ede22-1b46-0780-64e4-5db4a1e5236f@0x48.dk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Fix-userDoption-not-getting-freed-in-postmaster.patch | text/plain | 765 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jian he | 2026-02-21 14:42:59 | Re: alter check constraint enforceability |
| Previous Message | Álvaro Herrera | 2026-02-21 14:15:41 | Re: generating function default settings from pg_proc.dat |