Fix use-after-free issue in slot synchronization.

Amit Kapila <akapila@postgresql.org>

Commit: f2dbc83501d441a98f7799863e1b6f18af8e8fbe
Author: Amit Kapila <akapila@postgresql.org>
Date: 2025-09-03T06:31:05Z
Fix use-after-free issue in slot synchronization.

Author: Shlok Kyal <shlok.kyal.oss@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Backpatch-through: 18, where it was introduced
Discussion: https://postgr.es/m/CANhcyEXMrcEdzj-RNGJam0nJHM4y+ttdWsgUCFmXciM7BNKc7A@mail.gmail.com

Files

Discussion