mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
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
This commit is contained in:
parent
5c8cb8c01f
commit
d7c45172a6
@ -1886,6 +1886,8 @@ StandbyRecoverPreparedTransactions(bool overwriteOK)
|
||||
Assert(TransactionIdFollows(subxid, xid));
|
||||
SubTransSetParent(xid, subxid, overwriteOK);
|
||||
}
|
||||
|
||||
pfree(buf);
|
||||
}
|
||||
}
|
||||
FreeDir(cldir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user