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

From Tom Lane
Subject pgsql: Fix memory leak in pg_restore with zstd-compressed data.
Date
Msg-id E1tNkmu-0008I7-RL@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f06324705aeb5a4c67b6c08f2016c4c3c756723

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


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Fix incorrect slot type in BuildTupleHashTableExt
Next
From: Michael Paquier
Date:
Subject: pgsql: libpq: Add service name to PGconn and PQservice()