mirror of
https://github.com/postgres/postgres.git
synced 2026-07-16 13:12:58 -04:00
Fix minor resource leak in pg_dump
Michael Paquier, spotted using Coverity
This commit is contained in:
parent
1998261034
commit
aa7cf3eef4
1 changed files with 3 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue