diff options
-rw-r--r-- | src/bin/pg_basebackup/pg_recvlogical.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index a3447753119..e6158251ec1 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -633,6 +633,7 @@ StreamLogicalLog(void) { pg_log_error("unexpected termination of replication stream: %s", PQresultErrorMessage(res)); + PQclear(res); goto error; } PQclear(res); |