Thanks to visit codestin.com
Credit goes to github.com

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 <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Discussion: https://postgr.es/m/[email protected]
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)