Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 67c6bd1

Browse files
Fix minor memory leak in Standby startup
StandbyRecoverPreparedTransactions() leaked the buffer used for two phase state file. This was leaked once at startup and at every shutdown checkpoint seen. Backpatch to 9.6 Stas Kelvich
1 parent d299eb4 commit 67c6bd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/access/transam/twophase.c

+2
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)