Re: Fix use of variable after pfree

2025-09-02 Thread Daniel Gustafsson
> On 2 Sep 2025, at 09:42, Amit Kapila wrote: > On Tue, Sep 2, 2025 at 1:02 PM Shlok Kyal wrote: >> While going through the code of the slot sync worker, I found that in >> functions ReplSlotSyncWorkerMain and pg_sync_replication_slots the >> variable app_name.data is being used after it is free

Re: Fix use of variable after pfree

2025-09-02 Thread Amit Kapila
On Tue, Sep 2, 2025 at 1:02 PM Shlok Kyal wrote: > > Hi, > > While going through the code of the slot sync worker, I found that in > functions ReplSlotSyncWorkerMain and pg_sync_replication_slots the > variable app_name.data is being used after it is freed. > > We can get logs as following: > 2025

Fix use of variable after pfree

2025-09-02 Thread Shlok Kyal
Hi, While going through the code of the slot sync worker, I found that in functions ReplSlotSyncWorkerMain and pg_sync_replication_slots the variable app_name.data is being used after it is freed. We can get logs as following: 2025-09-02 12:26:48.520 IST [3908359] ERROR: synchronization worker "