Content-Length: 271257 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4ccac92d08f22ef0f8df29ea6bd9d5e77bf1d246
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 */
Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/4ccac92d08f22ef0f8df29ea6bd9d5e77bf1d246
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments