Commit 5e65f45c authored by Heikki Linnakangas's avatar Heikki Linnakangas

Another attempt at fixing memory leak in xlogreader.

max_block_id is also reset between reading records.

Michael Paquier
parent e0d4a290
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment