Fix use-after-free issue in slot synchronization.
Amit Kapila <akapila@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/slotsync.c | modified | +2 −1 |
| src/backend/replication/slotfuncs.c | modified | +2 −1 |
Discussion
- Fix use of variable after pfree 3 messages · 2025-09-02