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
pull/17/head
Simon Riggs 9 years ago
parent d299eb41df
commit 67c6bd1ca3
  1. 2
      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);

Loading…
Cancel
Save