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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user