Skip to content

Commit beebb25

Browse files
committed
Another attempt at fixing memory leak in xlogreader.
max_block_id is also reset between reading records. Michael Paquier
1 parent 510aad3 commit beebb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlogreader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ XLogReaderFree(XLogReaderState *state)
124124
{
125125
int block_id;
126126

127-
for (block_id = 0; block_id <= state->max_block_id; block_id++)
127+
for (block_id = 0; block_id <= XLR_MAX_BLOCK_ID; block_id++)
128128
{
129129
if (state->blocks[block_id].data)
130130
pfree(state->blocks[block_id].data);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy