From: Alvaro Herrera Date: Mon, 16 Mar 2020 19:27:13 +0000 (-0300) Subject: Plug memory leak X-Git-Tag: REL_11_8~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55978e28cd50e7db02289e1dca93a9284c7c2b05;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 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); } }