pgsql: Fix memory leak in pg_restore with zstd-compressed data.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory leak in pg_restore with zstd-compressed data.
Date: 2024-12-18 03:31:53
Message-ID: E1tNkmu-0008I8-Rt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leak in pg_restore with zstd-compressed data.

EndCompressorZstd() neglected to free everything. This was
most visible with a lot of large objects in the dump.

Per report from Tomasz Szypowski. Back-patch to v16
where this code came in.

Discussion: https://postgr.es/m/DU0PR04MB94193D038A128EF989F922D199042@DU0PR04MB9419.eurprd04.prod.outlook.com

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/04b86019818067b32ce51883a3322f875d573d15

Modified Files
--------------
src/bin/pg_dump/compress_zstd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-12-18 05:55:05 pgsql: libpq: Add service name to PGconn and PQservice()
Previous Message David Rowley 2024-12-17 23:06:28 pgsql: Fix incorrect slot type in BuildTupleHashTableExt