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

Commit67c6bd1

Browse files
Fix minor memory leak in Standby startup
StandbyRecoverPreparedTransactions() leaked the bufferused for two phase state file. This was leaked onceat startup and at every shutdown checkpoint seen.Backpatch to 9.6Stas Kelvich
1 parentd299eb4 commit67c6bd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/access/transam/twophase.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,8 @@ StandbyRecoverPreparedTransactions(bool overwriteOK)
18861886
Assert(TransactionIdFollows(subxid,xid));
18871887
SubTransSetParent(xid,subxid,overwriteOK);
18881888
}
1889+
1890+
pfree(buf);
18891891
}
18901892
}
18911893
FreeDir(cldir);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp