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 | cf72898c686ce81fd870769f1a51818b49688bec (patch) | |
tree | 15c1d4b3170fb2c465860016154d171f94edf54b /src | |
parent | 390984f92696712fe783609cabbc79f58d0f8a7d (diff) | |
download | postgresql-cf72898c686ce81fd870769f1a51818b49688bec.tar.gz postgresql-cf72898c686ce81fd870769f1a51818b49688bec.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 c4a3e2c1a6c..dd2e58e0b6b 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -4329,6 +4329,7 @@ append_depends_on_extension(Archive *fout, } PQclear(res); + destroyPQExpBuffer(query); pg_free(nm); } } |