summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorAlvaro Herrera2020-03-16 19:27:13 +0000
committerAlvaro Herrera2020-03-16 19:27:13 +0000
commit55978e28cd50e7db02289e1dca93a9284c7c2b05 (patch)
treef98ab3f549ae21fd5da0bba5a592c7ea2e5cc990 /src/bin
parent540ef37cc00d5b4ad3ae2bde8410bcb572bd174d (diff)
Plug memory leak
Introduced by b08dee24a557. Noted by Coverity.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/pg_dump/pg_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 4185c97fdb1..ab82e0d0f05 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -4296,6 +4296,7 @@ append_depends_on_extension(Archive *fout,
}
PQclear(res);
+ destroyPQExpBuffer(query);
pg_free(nm);
}
}