Re: Fix mismatched deallocation functions

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tristan Partin <tristan(at)partin(dot)io>, Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix mismatched deallocation functions
Date: 2026-07-01 11:57:14
Message-ID: aec5cb38-d173-403e-a4e1-c01b6581929f@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 28.05.26 22:21, Tristan Partin wrote:
> Attached you will find v2 of the patch and v2 of the Coccinelle script.
> For more reading on __attribute__((malloc)), see the GCC documentation:
> https://gcc.gnu.org/onlinedocs/gcc/Common-Attributes.html#index-malloc.

I have committed your patch. I also found a few more cases nearby that
I fixed, but I think when you dig more, across different function
layers, you will find more.

I think using these attributes would be good, and this is good step in
that direction, and we can continue fixing whatever else we find as we go.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-07-01 11:59:44 Re: md5_password_warnings for password auth with MD5-encrypted passwords
Previous Message Greg Burd 2026-07-01 11:43:16 Re: Centralised architecture detection