Fix memory leak in checkpointer process.
Fix memory leak in checkpointer process. `dtxCheckPointInfo` is not freed in the memory context of the checkpoint process.
@@ -8988,6 +8988,9 @@ CreateCheckPoint(int flags)
XLogFlush(recptr);
+ pfree(dtxCheckPointInfo);
+ dtxCheckPointInfo = NULL;
+
/*
* We mustn't write any new WAL after a shutdown checkpoint, or it will be
* overwritten at next startup. No-one should even try, this just allows
