Skip to content

Commit aa7cf3e

Browse files
committed
Fix minor resource leak in pg_dump
Michael Paquier, spotted using Coverity
1 parent 1998261 commit aa7cf3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6596,7 +6596,7 @@ getTransforms(Archive *fout, int *numTransforms)
65966596
PGresult *res;
65976597
int ntups;
65986598
int i;
6599-
PQExpBuffer query = createPQExpBuffer();
6599+
PQExpBuffer query;
66006600
TransformInfo *transforminfo;
66016601
int i_tableoid;
66026602
int i_oid;
@@ -6612,6 +6612,8 @@ getTransforms(Archive *fout, int *numTransforms)
66126612
return NULL;
66136613
}
66146614

6615+
query = createPQExpBuffer();
6616+
66156617
/* Make sure we are in proper schema */
66166618
selectSourceSchema(fout, "pg_catalog");
66176619

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy