git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9029f4b)
Free leaked result set in pg_rewind
2015年4月12日 19:42:01 +0000 (22:42 +0300)
2015年4月12日 19:42:01 +0000 (22:42 +0300)
It was not significant in practice, it was just one instance of a small
result set, but let's pacify Coverity.

Michael Paquier


diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c
index 23c971ab1c2ca7524355d7329594bd5b9c5bbea8..e696554a92b009841192ba8273c15f62af593f9b 100644 (file)
--- 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:
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /