v2-0001-Fix-userDoption-not-getting-freed-in-postmaster.patch
text/plain
Filename: v2-0001-Fix-userDoption-not-getting-freed-in-postmaster.patch
Type: text/plain
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v2-0001
Subject: Fix userDoption not getting freed in postmaster
| File | + | − |
|---|---|---|
| src/backend/postmaster/postmaster.c | 2 | 0 |
From 493a0756082acac48cb02ea4fbbe4c8f4c34b0b7 Mon Sep 17 00:00:00 2001
From: Henrik TJ <henrik@0x48.dk>
Date: Sat, 18 Apr 2026 16:20:31 +0200
Subject: [PATCH] Fix userDoption not getting freed in postmaster
---
src/backend/postmaster/postmaster.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 90c7c4528e8..476e87001f1 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -789,6 +789,8 @@ PostmasterMain(int argc, char *argv[])
*/
if (!SelectConfigFiles(userDoption, progname))
ExitPostmaster(2);
+ if (userDoption != NULL)
+ free(userDoption);
if (output_config_variable != NULL)
{
--
2.53.0