From 74a68e37d059295e97cc55683c9342912a0ec81f Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Sun, 12 Apr 2015 22:42:01 +0300 Subject: [PATCH] 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 --- src/bin/pg_rewind/libpq_fetch.c | 1 + 1 file changed, 1 insertion(+) 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: