Skip to content

Commit a19db08

Browse files
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 e889422 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
1 parent ef7a5af commit a19db08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ StreamLogicalLog(void)
633633
{
634634
pg_log_error("unexpected termination of replication stream: %s",
635635
PQresultErrorMessage(res));
636+
PQclear(res);
636637
goto error;
637638
}
638639
PQclear(res);

0 commit comments

Comments
 (0)