Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbeebb25

Browse files
committed
Another attempt at fixing memory leak in xlogreader.
max_block_id is also reset between reading records.Michael Paquier
1 parent510aad3 commitbeebb25

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
intblock_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)

[8]ページ先頭

©2009-2025 Movatter.jp