postgres.git / summary / log / commit / refs
commit faf686b540e602f77c7a31442f3344444eb848e9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun Jul 12 20:25:52 2015 +0000
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
src/bin/pg_dump/pg_dump.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index b6771000371..e962107c9ec 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -14796,6 +14796,7 @@ getExtensionMembership(Archive *fout, ExtensionInfo extinfo[],
addObjectDependency(&contable->dataObj->dobj,
reftable->dataObj->dobj.dumpId);
}
+ PQclear(res);
destroyPQExpBuffer(query);
}
[parent: 0a9b0428f033]