Re: Fix mismatched deallocation functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix mismatched deallocation functions
Date
Msg-id aec5cb38-d173-403e-a4e1-c01b6581929f@eisentraut.org
Whole thread
In response to Re: Fix mismatched deallocation functions  ("Tristan Partin" <tristan@partin.io>)
List 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.




pgsql-hackers by date:

Previous
From: "Greg Burd"
Date:
Subject: Re: Centralised architecture detection
Next
From: Fujii Masao
Date:
Subject: Re: md5_password_warnings for password auth with MD5-encrypted passwords