Re: pgsql: Fix fat fingering in 22cb6d28950

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pgsql: Fix fat fingering in 22cb6d28950
Дата
Msg-id 3fd6f7da-0453-4dde-95df-146fecfa7a92@dunslane.net
обсуждение исходный текст
Ответ на Re: pgsql: Fix fat fingering in 22cb6d28950  (Mahendra Singh Thalor <mahi6run@gmail.com>)
Список 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 по дате отправления: