Fix some resources leaks (src/bin/pg_basebackup/pg_createsubscriber.c)
Ranier Vilela <ranier.vf@gmail.com>
From: Ranier Vilela <ranier.vf@gmail.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2024-03-27T23:50:09Z
Lists: pgsql-hackers
Attachments
- fix-some-issues-pg_createsubscriber.patch (application/octet-stream) patch
Hi, Per Coverity. Coverity has some reports in the new code pg_createsubscriber.c I think that Coverity is right. 1. CID 1542682: (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable buf going out of scope leaks the storage it points to. 2. CID 1542704: (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable conn going out of scope leaks the storage it points to. 3. CID 1542691: (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable str going out of scope leaks the storage it points to. Patch attached. best regards, Ranier Vilela
Commits
-
Fix assorted resource leaks in new pg_createsubscriber code.
- 91cbb4b492cb 17.0 landed