Re: pgsql: Fix fat fingering in 22cb6d28950 - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: Fix fat fingering in 22cb6d28950
Date
Msg-id 3fd6f7da-0453-4dde-95df-146fecfa7a92@dunslane.net
Whole thread Raw
In response to Re: pgsql: Fix fat fingering in 22cb6d28950  (Mahendra Singh Thalor <mahi6run@gmail.com>)
List pgsql-committers


On 2025-04-11 Fr 3:24 PM, Mahendra Singh Thalor wrote:
On Fri, 11 Apr 2025 at 04:38, Andrew Dunstan <andrew@dunslane.net> wrote:
>
> Fix fat fingering in 22cb6d28950
>
> Per Rainier Vilela
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/39729ec01d25dbe12e0dd8322c68f242650235c9
>
> Modified Files
> --------------
> src/bin/pg_dump/pg_restore.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>

Hi,
This seems not a proper fix, rather this is adding a segfault.

[...]

Here, we are passing &q, but we can't free this by destroyStringInfo(&q); 

Fix: pg_free(q.data)



Quite right. Clearly I was not having a good day on Thursday. Will fix.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: do a little copy-editing on Index Storage Parameters list.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Free memory properly in pg_restore.c