1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Fix a couple of memory leaks in src/bin/pg_basebackup/

These have been introduced by 7fbe0c8, and could happen for
pg_basebackup and pg_receivewal.

Per report from Coverity for the ones in walmethods.c, I have spotted
the ones in receivelog.c after more review.

Backpatch-through: 10
This commit is contained in:
Michael Paquier
2021-07-26 11:13:37 +09:00
parent 28d936031a
commit 4ef64c425d
3 changed files with 15 additions and 2 deletions

View File

@@ -53,8 +53,8 @@ struct WalWriteMethod
ssize_t (*get_file_size) (const char *pathname);
/*
* Return the name of the current file to work on, without the base
* directory. This is useful for logging.
* Return the name of the current file to work on in pg_malloc()'d string,
* without the base directory. This is useful for logging.
*/
char *(*get_file_name) (const char *pathname, const char *temp_suffix);