Fix use-after-free issue in slot synchronization.
Author: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Backpatch-through: 18, where it was introduced
Discussion: https://postgr.es/m/CANhcyEXMrcEdzj-RNGJam0nJHM4y+ttdWsgUCFmXciM7BNKc7A@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f2dbc83501d441a98f7799863e1b6f18af8e8fbe
Modified Files
--------------
src/backend/replication/logical/slotsync.c | 3 ++-
src/backend/replication/slotfuncs.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)