Re: Memory leak in pg_hmac_final - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Memory leak in pg_hmac_final
Date
Msg-id 73AB4B2E-6099-4318-9B27-A83553B478BB@yesql.se
Whole thread Raw
In response to Re: Memory leak in pg_hmac_final  (Sergey Shinderuk <s.shinderuk@postgrespro.ru>)
Responses Re: Memory leak in pg_hmac_final  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
> On 1 Oct 2021, at 14:31, Sergey Shinderuk <s.shinderuk@postgrespro.ru> wrote:
>
> On 01.10.2021 15:05, Daniel Gustafsson wrote:
>>> On 1 Oct 2021, at 12:39, Sergey Shinderuk <s.shinderuk@postgrespro.ru> wrote:
>>
>>> Here is a patch fixing the subject.
>>
>> Seems reasonable on a quick glance, the interim h buffer should be freed (this
>> is present since 14).  I'll have another look at this in a bit and will take
>> care of it.

Patch pushed to master and 14.

> Thanks.  I found it using the leaks tool on macOS.

Nice, I hadn't heard of that before but it seems quite neat.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Paul A Jungwirth
Date:
Subject: Re: SQL:2011 application time
Next
From: Daniel Gustafsson
Date:
Subject: Re: libpq compression