aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-12 22:42:01 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-12 22:42:01 +0300
commit74a68e37d059295e97cc55683c9342912a0ec81f (patch)
tree5a68d4e0c767d99499b2d533645c966b538992c0 /src
parent9029f4b37406b21abb7516a2fd5643e0961810f8 (diff)
downloadpostgresql-74a68e37d059295e97cc55683c9342912a0ec81f.tar.gz
postgresql-74a68e37d059295e97cc55683c9342912a0ec81f.zip
Free leaked result set in pg_rewind
It was not significant in practice, it was just one instance of a small result set, but let's pacify Coverity. Michael Paquier
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_rewind/libpq_fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c
index 23c971ab1c2..e696554a92b 100644
--- a/src/bin/pg_rewind/libpq_fetch.c
+++ b/src/bin/pg_rewind/libpq_fetch.c
@@ -231,6 +231,7 @@ receiveFileChunks(const char *sql)
break;
case PGRES_TUPLES_OK:
+ PQclear(res);
continue; /* final zero-row result */
default: