Avoid resource leak (src/bin/pg_resetwal/pg_resetwal.c)

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2025-10-24T00:26:24Z
Lists: pgsql-hackers

Attachments

Hi.

Per Coverity.

The function *read_controlfile* is responsible for updating old pg_control
versions.
Coverity complains that the struct ControlFileData buffer is leaked.

I think that is right.

Trivial patch attached.

best regards,
Ranier Vilela