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) ...@@ -6596,7 +6596,7 @@ getTransforms(Archive *fout, int *numTransforms)
PGresult *res; PGresult *res;
int ntups; int ntups;
int i; int i;
PQExpBuffer query = createPQExpBuffer(); PQExpBuffer query;
TransformInfo *transforminfo; TransformInfo *transforminfo;
int i_tableoid; int i_tableoid;
int i_oid; int i_oid;
...@@ -6612,6 +6612,8 @@ getTransforms(Archive *fout, int *numTransforms) ...@@ -6612,6 +6612,8 @@ getTransforms(Archive *fout, int *numTransforms)
return NULL; return NULL;
} }
query = createPQExpBuffer();
/* Make sure we are in proper schema */ /* Make sure we are in proper schema */
selectSourceSchema(fout, "pg_catalog"); 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