]> git.ipfire.org Git - thirdparty/postgresql.git/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 b6771000371e951a562b3a6afec0883d3fc70ef4..e962107c9ec7eac05b99e8a378b510ad4cb06f1b 100644 (file)
@@ -14796,6 +14796,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
                addObjectDependency(&contable->dataObj->dobj,
                                                        reftable->dataObj->dobj.dumpId);
        }
+       PQclear(res);
        destroyPQExpBuffer(query);
 }