diff options
Diffstat (limited to 'src/bin/pg_rewind/libpq_fetch.c')
-rw-r--r-- | src/bin/pg_rewind/libpq_fetch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c index 0c9d46d209d..23c971ab1c2 100644 --- a/src/bin/pg_rewind/libpq_fetch.c +++ b/src/bin/pg_rewind/libpq_fetch.c @@ -285,6 +285,10 @@ receiveFileChunks(const char *sql) open_target_file(filename, false); write_target_range(chunk, chunkoff, chunksize); + + pg_free(filename); + + PQclear(res); } } |