Em ter., 2 de abr. de 2024 às 15:31, Daniel Gustafsson <dan...@yesql.se>
escreveu:

> > On 2 Apr 2024, at 20:13, Ranier Vilela <ranier...@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.
>

Per Coverity.

Another case of resource leak, when loglevel is LOG.
In the function shell_archive_file (src/backend/archive/shell_archive.c)
The pointer *xlogarchcmd*  is not freed.

best regards,
Ranier Vilela

Attachment: fix-resource-leak-shell_archive.patch
Description: Binary data

Reply via email to