projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d299eb4
)
Fix minor memory leak in Standby startup
author
Simon Riggs
<simon@2ndQuadrant.com>
Thu, 8 Sep 2016 09:32:58 +0000
(10:32 +0100)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Thu, 8 Sep 2016 09:32:58 +0000
(10:32 +0100)
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
src/backend/access/transam/twophase.c
patch
|
blob
|
history
diff --git
a/src/backend/access/transam/twophase.c
b/src/backend/access/transam/twophase.c
index 9f55adcaf5ef0e50fe1ea93e4e725c5c7b794215..1323fb508dc9585e8366dcc8f24ed8fe88fcee46 100644
(file)
--- a/
src/backend/access/transam/twophase.c
+++ b/
src/backend/access/transam/twophase.c
@@
-1886,6
+1886,8
@@
StandbyRecoverPreparedTransactions(bool overwriteOK)
Assert(TransactionIdFollows(subxid, xid));
SubTransSetParent(xid, subxid, overwriteOK);
}
+
+ pfree(buf);
}
}
FreeDir(cldir);