Fix minor memory leak in Standby startup
authorSimon Riggs
Thu, 8 Sep 2016 10:20:21 +0000 (11:20 +0100)
committerSimon Riggs
Thu, 8 Sep 2016 10:20:21 +0000 (11:20 +0100)
commitd7c45172a673be1fc9e51e98e45a44c14d1ee78d
treee690355619e9168e4b2007de1604a74536b3cbcf
parent5c8cb8c01f0a8d484de301f58e673ed9c732fbbe
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
src/backend/access/transam/twophase.c