Re: Patch a potential memory leak in describeOneTableDetails() - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Patch a potential memory leak in describeOneTableDetails()
Date
Msg-id 795ABB3B-B81C-402C-A334-AC760006BC49@yesql.se
Whole thread Raw
In response to Re: Patch a potential memory leak in describeOneTableDetails()  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
> On 24 Feb 2022, at 14:55, Daniel Gustafsson <daniel@yesql.se> wrote:
>> On 24 Feb 2022, at 07:32, Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote:

>> So the attached does that.
>
> I think this is reasonable, since it's pretty clear that more(1) supporting
> "-x" is fairly rare. I'll await others commenting.

The original patch which prompted this got a bit buried, the attached 0001
contains that fix (using free() which matches the surrounding code) and 0002
has the documentation fixes for the more/less -x command.

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


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: using an end-of-recovery record in all cases
Next
From: Mats Taraldsvik
Date:
Subject: Fwd: Declarative partitioning and partition pruning/check