Fix assorted memory leaks.
authorTom Lane
Sun, 12 Jul 2015 20:25:51 +0000 (16:25 -0400)
committerTom Lane
Sun, 12 Jul 2015 20:25:51 +0000 (16:25 -0400)
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

src/bin/pg_dump/pg_dump.c

index 06ee202b37b84767d5913b6832dabf9faf64f95a..8dbfaff767464bcf5816850f17bd0141ebac8c1c 100644 (file)
@@ -15133,6 +15133,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
        addObjectDependency(&contable->dataObj->dobj,
                            reftable->dataObj->dobj.dumpId);
    }
+   PQclear(res);
    destroyPQExpBuffer(query);
 }