summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-07-12 16:25:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-07-12 16:25:51 -0400
commit1ed5493877220affaa235427f4346afd932ce1ae (patch)
treee2d4255ac19c3a5373668efb58003bb67566f653
parent8989a52657332c98fab56de6b86c41d93ea0c621 (diff)
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
-rw-r--r--src/bin/pg_dump/pg_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 06ee202b37b..8dbfaff7674 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -15133,6 +15133,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
addObjectDependency(&contable->dataObj->dobj,
reftable->dataObj->dobj.dumpId);
}
+ PQclear(res);
destroyPQExpBuffer(query);
}