Re: Fix api misuse (src/bin/pg_amcheck/pg_amcheck.c)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix api misuse (src/bin/pg_amcheck/pg_amcheck.c)
Date: 2025-02-27 05:08:04
Message-ID: Z7_zNGaIPKtyEptm@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 26, 2025 at 07:04:25PM +0530, vignesh C wrote:
> On Tue, 18 Feb 2025 at 18:18, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> wrote:
>> Similar to commit 5b94e27 [1]
>> The correct function when freeing memory in the frontend,
>> using the function PQescapeIdentifier, must be
>> PQfreemem.
>>
>> Trivial patch attached.
>
> Thanks, this change looks good to me.

There's no point in leaving that unfixed in pg_amcheck, so done down
to 14 with 48e4ae9a0707.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2025-02-27 05:16:22 Re: Restrict copying of invalidated replication slots
Previous Message Andy Alsup 2025-02-27 03:11:25 Re: Update docs for UUID data type