Thread: pgsql: Fix memory leak in xlogreader facility.

pgsql: Fix memory leak in xlogreader facility.

From
Heikki Linnakangas
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/61a65c53bd3e48e7ff7661a528d1791dfd956957

Modified Files
--------------
src/backend/access/transam/xlogreader.c |    7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)