Fix memory leak in pg_restore with zstd-compressed data.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/compress_zstd.c | modified | +2 −1 |
Discussion
- Not able to restore database - error: could not decompress data: Allocation error : not enough memory 4 messages · 2024-12-17 → 2024-12-18