From: Alvaro Herrera Date: Mon, 16 Mar 2020 19:27:13 +0000 (-0300) Subject: Plug memory leak X-Git-Tag: REL9_6_18~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7984c7e9fcd9468007c3ac51ba65f9642ba4dc4b;p=thirdparty%2Fpostgresql.git Plug memory leak Introduced by b08dee24a557. Noted by Coverity. --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 49f0ee886af..f36065f4a3c 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -3491,6 +3491,7 @@ append_depends_on_extension(Archive *fout, } PQclear(res); + destroyPQExpBuffer(query); pg_free(nm); } }