]> granicus.if.org Git - postgresql/commitdiff
Fix assorted memory leaks.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Jul 2015 20:25:52 +0000 (16:25 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Jul 2015 20:25:52 +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 5ee40c7888fbd9eb3330bcf0ea99cf9132ae357a..79dfee42df647906d6ae4b8e3d73f5106f6ecf83 100644 (file)
@@ -14007,6 +14007,7 @@ getExtensionMembership(ExtensionInfo extinfo[], int numExtensions)
                addObjectDependency(&contable->dataObj->dobj,
                                                        reftable->dataObj->dobj.dumpId);
        }
+       PQclear(res);
        destroyPQExpBuffer(query);
 }