8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cbe96 commit 4ccac92Copy full SHA for 4ccac92
src/bin/pg_basebackup/receivelog.c
@@ -1079,12 +1079,11 @@ CopyStreamPoll(PGconn *conn, long timeout_ms)
1079
static int
1080
CopyStreamReceive(PGconn *conn, long timeout, char **buffer)
1081
{
1082
- static char *copybuf = NULL;
+ char *copybuf = NULL;
1083
int rawlen;
1084
1085
- if (copybuf != NULL)
1086
- PQfreemem(copybuf);
1087
- copybuf = NULL;
+ if (*buffer != NULL)
+ PQfreemem(*buffer);
1088
*buffer = NULL;
1089
1090
/* Try to receive a CopyData message */
0 commit comments