mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
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 e889422d98
with an equivalent low impact.
Author: Steven Niu <niushiji@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/c4b1c627-a3e4-4347-a670-1e28a43ce0eb@gmail.com
This commit is contained in:
@@ -633,6 +633,7 @@ StreamLogicalLog(void)
|
|||||||
{
|
{
|
||||||
pg_log_error("unexpected termination of replication stream: %s",
|
pg_log_error("unexpected termination of replication stream: %s",
|
||||||
PQresultErrorMessage(res));
|
PQresultErrorMessage(res));
|
||||||
|
PQclear(res);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
Reference in New Issue
Block a user