Skip to content

Commit 51c3889

Browse files
committed
Fix fd leak in pg_verifybackup
An error code path newly-introduced by 87ae969 forgot to close a file descriptor when verifying a file's checksum. Per report from Coverity, via Tom Lane.
1 parent e98c900 commit 51c3889

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_verifybackup/pg_verifybackup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ verify_file_checksum(verifier_context *context, manifest_file *m,
730730
{
731731
report_backup_error(context, "could not initialize checksum of file \"%s\"",
732732
relpath);
733+
close(fd);
733734
return;
734735
}
735736

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy