Fix some memory leaks in ecpg.addons

From: "Tristan Partin" <tristan(at)neon(dot)tech>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix some memory leaks in ecpg.addons
Date: 2023-11-08 17:01:06
Message-ID: CWTLB2WWVJJ2.2YV6ERNOL1WVF@neon.tech
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

clang and gcc both now support -fsanitize=address,undefined. These are
really useful to me personally when trying to debug issues.
Unfortunately ecpg code has a ton of memory leaks, which makes builds
really painful. It would be great to fix all of them, but I don't have
the patience to try to read flex/bison code. Here are two memory leak
fixes in any case.

--
Tristan Partin
Neon (https://neon.tech)

Attachment Content-Type Size
v1-0001-Patch-two-memory-leaks-in-ecpg.addons.patch text/x-patch 1.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-11-08 17:07:45 Re: Fix some memory leaks in ecpg.addons
Previous Message Alvaro Herrera 2023-11-08 16:20:54 Re: Add PQsendSyncMessage() to libpq