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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix api misuse (src/bin/pg_amcheck/pg_amcheck.c)
Date: 2025-02-18 12:48:07
Message-ID: CAEudQArbTWVSbxq608GRmXJjnNSQ0B6R7CSffNnj2hPWMUsRNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

Similar to commit 5b94e27 <http://5b94e2753439b699b78aacbb53e89bf0e814becc>
[1]
The correct function when freeing memory in the frontend,
using the function PQescapeIdentifier, must be
PQfreemem.

Trivial patch attached.

best regards,
Ranier Vilela

[1]
https://www.postgresql.org/message-id/CAEudQAp%3DAW5dJXrGLbC_aZg_9nOo%3D42W7uLDRONFQE-gcgnkgQ%40mail.gmail.com

Attachment Content-Type Size
fix-api-misuse-pg_amcheck.patch application/octet-stream 371 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2025-02-18 12:52:15 Re: Improve statistics estimation considering GROUP-BY as a 'uniqueiser'
Previous Message Zhang Mingli 2025-02-18 12:43:02 Re: Proposal to CREATE FOREIGN TABLE LIKE