diff options
author | Daniel Gustafsson | 2025-03-25 16:24:23 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2025-03-25 16:24:23 +0000 |
commit | a19db082749662a933d0bf72722982b1ee2c4725 (patch) | |
tree | f79247cf743ede34dba6d13c2612b0e14e75e4e4 | |
parent | ef7a5af77d449ee2b426f627c1f7472740350040 (diff) |
pg_basebackup: Add missing PQclear in error path
This adds a missing PQclear in the error path of StreamLogicalLog, a
fix in the same vein as e889422d98e with an equivalent low impact.
Author: Steven Niu <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/[email protected]
-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); |