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

Commitb03c87d

Browse files
committed
Fix memory leaks in ATX
1 parent21d2a87 commitb03c87d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,6 +3622,8 @@ bool ResumeTransaction(void)
36223622
prepareGID=sus->prepareGID;
36233623
forceSyncCommit=sus->forceSyncCommit;
36243624

3625+
MemoryContextDelete(TransactionAbortContext);
3626+
36253627
TopTransactionContext=sus->TopTransactionContext;
36263628
CurTransactionContext=sus->CurTransactionContext;
36273629
TransactionAbortContext=sus->TransactionAbortContext;

‎src/backend/utils/time/snapmgr.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,13 @@ void ResumeSnapshot(void *data)
21882188
//UnregisterSnapshot(CatalogSnapshot);
21892189
//UnregisterSnapshot(HistoricSnapshot);
21902190

2191+
free(CurrentSnapshotData.xip);
2192+
free(CurrentSnapshotData.subxip);
2193+
free(SecondarySnapshotData.xip);
2194+
free(SecondarySnapshotData.subxip);
2195+
free(CatalogSnapshotData.xip);
2196+
free(CatalogSnapshotData.subxip);
2197+
21912198
CurrentSnapshotData=s->CurrentSnapshotData;
21922199
SecondarySnapshotData=s->SecondarySnapshotData;
21932200
CatalogSnapshotData=s->CatalogSnapshotData;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp