From: Tom Lane Date: Sun, 12 Jul 2015 20:25:52 +0000 (-0400) Subject: Fix assorted memory leaks. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=faf686b540e602f77c7a31442f3344444eb848e9;p=users%2Fheikki%2Fpostgres.git Fix assorted memory leaks. Per Coverity (not that any of these are so non-obvious that they should not have been caught before commit). The extent of leakage is probably minor to unnoticeable, but a leak is a leak. Back-patch as necessary. Michael Paquier --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index b677100037..e962107c9e 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -14796,6 +14796,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[], addObjectDependency(&contable->dataObj->dobj, reftable->dataObj->dobj.dumpId); } + PQclear(res); destroyPQExpBuffer(query); }