]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix memory leaks in pg_combinebackup/reconstruct.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Oct 2025 17:38:37 +0000 (13:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Oct 2025 17:38:37 +0000 (13:38 -0400)
commit4eb6992af1954cd81f4a8b503e8c45bae2a9c1fe
treeee086bf7e0860b418a3fa12bbbfb35e08758e096
parent5c659da980e11cd2a9f7b98d0434ee2e25214cc5
Fix memory leaks in pg_combinebackup/reconstruct.c.

One code path forgot to free the separately-malloc'd filename
part of a struct rfile.  Another place freed the filename but
forgot the struct rfile itself.  These seem worth fixing because
with a large backup we could be dealing with many files.

Coverity found the bug in make_rfile().  I found the other one
by manual inspection.
src/bin/pg_combinebackup/reconstruct.c