summaryrefslogtreecommitdiff
path: root/src/backend/archive/shell_archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/archive/shell_archive.c')
-rw-r--r--src/backend/archive/shell_archive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/archive/shell_archive.c b/src/backend/archive/shell_archive.c
index 0925348bfee..506c5a30ad2 100644
--- a/src/backend/archive/shell_archive.c
+++ b/src/backend/archive/shell_archive.c
@@ -125,9 +125,11 @@ shell_archive_file(ArchiveModuleState *state, const char *file,
errdetail("The failed archive command was: %s",
xlogarchcmd)));
}
+ pfree(xlogarchcmd);
return false;
}
+ pfree(xlogarchcmd);
elog(DEBUG1, "archived write-ahead log file \"%s\"", file);
return true;