pgsql: Fix minor memory leak in pg_dump

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix minor memory leak in pg_dump
Date: 2020-04-15 06:58:41
Message-ID: E1jOc0P-0005Ro-8f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix minor memory leak in pg_dump

A query used to read default ACL information from the catalogs did not
free a set of PQExpBuffer.

Oversight in commit e2090d9, so backpatch down to 9.6.

Author: Jie Zhang
Reviewed-by: Sawada Masahiko
Discussion: https://postgr.es/m/05bcbc5857f948efa0b451b85a48ae10@G08CNEXMBPEKD06.g08.fujitsu.local
Backpatch-through: 9.6

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f4ee44bcdbcd437f860f2d048125a118335b088

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 5 +++++
1 file changed, 5 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2020-04-15 21:24:14 Re: pgsql: Rationalize GetWalRcv{Write,Flush}RecPtr().
Previous Message Fujii Masao 2020-04-15 02:16:01 pgsql: Code review for backup manifest.