Re: Fix possible resource leaks (src/backend/replication/logical/conflict.c)

2024-09-04 Thread Tom Lane
Ranier Vilela writes: > Per Coverity. Coverity is never to be trusted about "leaks" in the backend, because it has no idea about short- versus long-lived memory contexts. > The function *errdetail_apply_conflict* reports potential conflicts. > But do not care about possible resource leaks. > How

Fix possible resource leaks (src/backend/replication/logical/conflict.c)

2024-09-04 Thread Ranier Vilela
Hi. Per Coverity. The commit 9758174 , included the source src/backend/replication/logical/conflict.c. The function *errdetail_apply_conflict* reports potential conflicts. But do not care about possible resource leaks. However, the leaked size can