From: Alvaro Herrera Date: Mon, 16 Mar 2020 19:27:13 +0000 (-0300) Subject: Plug memory leak X-Git-Tag: REL_10_13~82 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=c6b75b3f14fd4ff973ad3d2e2cfe42b5639bd101;p=postgresql.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 1efc22559d9..8b3b1bf91ec 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -3990,6 +3990,7 @@ append_depends_on_extension(Archive *fout, } PQclear(res); + destroyPQExpBuffer(query); pg_free(nm); } }