Fix memory leak in xlogreader facility.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 03a0a3532b47b2a634cd2700d49edc086af748a0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-07-27T15:30:27Z
Releases: 9.5.0
Fix memory leak in xlogreader facility.

XLogReaderFree failed to free the per-block data buffers, when they
happened to not be used by the latest read WAL record.

Michael Paquier. Backpatch to 9.5, where the per-block buffers were added.

Files

PathChange+/−
src/backend/access/transam/xlogreader.c modified +2 −5