From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix a couple of memory leaks in src/bin/pg_basebackup/
Date: Mon, 26 Jul 2021 02:15:11 +0000
Message-ID: <E1m7q99-0006w6-5O@gemulon.postgresql.org> (raw)
Fix a couple of memory leaks in src/bin/pg_basebackup/
These have been introduced by 7fbe0c8, and could happen for
pg_basebackup and pg_receivewal.
Per report from Coverity for the ones in walmethods.c, I have spotted
the ones in receivelog.c after more review.
Backpatch-through: 10
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b0d28671964d61416248789e3cee4508ac6281b4
Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 6 ++++++
src/bin/pg_basebackup/walmethods.c | 7 +++++++
src/bin/pg_basebackup/walmethods.h | 4 ++--
3 files changed, 15 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Fix a couple of memory leaks in src/bin/pg_basebackup/
In-Reply-To: <E1m7q99-0006w6-5O@gemulon.postgresql.org>
References: <E1m7q99-0006w6-5O@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox