1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

Another attempt at fixing memory leak in xlogreader.

max_block_id is also reset between reading records.

Michael Paquier
This commit is contained in:
Heikki Linnakangas 2015-07-28 09:05:46 +03:00
parent 510aad31ea
commit beebb259d2

View File

@ -124,7 +124,7 @@ XLogReaderFree(XLogReaderState *state)
{
int block_id;
for (block_id = 0; block_id <= state->max_block_id; block_id++)
for (block_id = 0; block_id <= XLR_MAX_BLOCK_ID; block_id++)
{
if (state->blocks[block_id].data)
pfree(state->blocks[block_id].data);