Fix minor resource leak in pg_dump
Michael Paquier, spotted using Coverity
This commit is contained in:
parent
1998261034
commit
aa7cf3eef4
@ -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)
|
|||||||
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");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user