Content-Length: 259093 | pFad | http://github.com/postgrespro/postgres/commit/5e65f45c6eff8278e2901511da61d3a265adc874

77 Another attempt at fixing memory leak in xlogreader. · postgrespro/postgres@5e65f45 · GitHub
Skip to content

Commit 5e65f45

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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5e65f45c6eff8278e2901511da61d3a265adc874

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy