From: Alvaro Herrera Date: Mon, 19 Mar 2012 20:52:20 +0000 (-0300) Subject: pg_dump: fix double free of query results X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=77503a7638a35eedd9cb08d9ca4c54deb203521d;p=users%2Fc2main%2Fpostgres.git pg_dump: fix double free of query results This bug was introduced while refactoring in commit 1631598e --- no need to back-patch. Bug report and fix from Joachim Wieland. --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 2b0a5ff81a..57a6ccb56f 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -2372,8 +2372,6 @@ dumpBlobs(Archive *fout, void *arg) PQclear(res); } while (ntups > 0); - PQclear(res); - return 1; }