Commit aa7cf3ee authored by Magnus Hagander's avatar Magnus Hagander

Fix minor resource leak in pg_dump

Michael Paquier, spotted using Coverity
parent 19982610
......@@ -6596,7 +6596,7 @@ getTransforms(Archive *fout, int *numTransforms)
PGresult *res;
int ntups;
int i;
PQExpBuffer query = createPQExpBuffer();
PQExpBuffer query;
TransformInfo *transforminfo;
int i_tableoid;
int i_oid;
......@@ -6612,6 +6612,8 @@ getTransforms(Archive *fout, int *numTransforms)
return NULL;
}
query = createPQExpBuffer();
/* Make sure we are in proper schema */
selectSourceSchema(fout, "pg_catalog");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment