Re: Fix resource leak (src/backend/libpq/be-secure-common.c) - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Fix resource leak (src/backend/libpq/be-secure-common.c)
Date
Msg-id DB8C32CC-83B9-4441-9E6A-626890B5E7F6@yesql.se
Whole thread Raw
In response to [MASSMAIL]Fix resource leak (src/backend/libpq/be-secure-common.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Fix resource leak (src/backend/libpq/be-secure-common.c)
List pgsql-hackers
> On 2 Apr 2024, at 20:13, Ranier Vilela <ranier.vf@gmail.com> wrote:

> Fix by freeing the pointer, like pclose_check (src/common/exec.c) similar case.

Off the cuff, seems reasonable when loglevel is LOG.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: using extended statistics to improve join estimates
Next
From: "David E. Wheeler"
Date:
Subject: [MASSMAIL]RFC: Additional Directory for Extensions