]> 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 e10c30a8fe1c15cf327c170bb109a718d708d1ad..9d224476c84de9226963bcd01a34391f968695e6 100644 (file)
@@ -14155,6 +14155,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
                addObjectDependency(&contable->dataObj->dobj,
                                                        reftable->dataObj->dobj.dumpId);
        }
+       PQclear(res);
        destroyPQExpBuffer(query);
 }