From: Tom Lane Date: Sun, 12 Jul 2015 20:25:52 +0000 (-0400) Subject: Fix assorted memory leaks. X-Git-Tag: REL9_1_19~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9a859b549d77dc8006670d012fecd94594c0a70;p=thirdparty%2Fpostgresql.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 5ee40c7888f..79dfee42df6 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -14007,6 +14007,7 @@ getExtensionMembership(ExtensionInfo extinfo[], int numExtensions) addObjectDependency(&contable->dataObj->dobj, reftable->dataObj->dobj.dumpId); } + PQclear(res); destroyPQExpBuffer(query); }