Fix possible resource leak (src/bin/pg_basebackup/pg_receivewal.c)
Started by Ranier Vilelaover 1 year ago1 messageshackers
Beta feature
Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.
You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:
docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t51046psql -h localhost -U postgresBuilt from patchset v1 (message #1), August 17, 2026 at 09:33 AM.
Hi.
Per Coverity.
CID 1591288: (#1 of 1): Resource leak (RESOURCE_LEAK)
10. leaked_storage: Variable sysidentifier going out of scope leaks the
storage it points to.
Trivial patch attached.
best regards,
Ranier Vilela