Fix nasty memory leak in pg_restore: _PrintData called inflateInit but

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e7257b8eb21345b6dc340b236a9213e079d05fba
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-11-27T23:48:12Z
Releases: 7.2.1
Fix nasty memory leak in pg_restore: _PrintData called inflateInit but
never did inflateEnd, thus leaking some tens of KB per call.  Which
added up *real fast* when dealing with, say, thousands of BLOBs.
Thanks to Lane Rollins for the bug report.

Files

PathChange+/−
src/bin/pg_dump/pg_backup_custom.c modified +3 −1