diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-16 16:27:13 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-16 16:27:13 -0300 |
commit | 55978e28cd50e7db02289e1dca93a9284c7c2b05 (patch) | |
tree | f98ab3f549ae21fd5da0bba5a592c7ea2e5cc990 /src | |
parent | 540ef37cc00d5b4ad3ae2bde8410bcb572bd174d (diff) | |
download | postgresql-55978e28cd50e7db02289e1dca93a9284c7c2b05.tar.gz postgresql-55978e28cd50e7db02289e1dca93a9284c7c2b05.zip |
Plug memory leak
Introduced by b08dee24a557. Noted by Coverity.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 1 |
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); } } |