Plug memory leak
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Mar 2020 19:27:13 +0000 (16:27 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Mar 2020 19:27:13 +0000 (16:27 -0300)
Introduced by b08dee24a557.  Noted by Coverity.

src/bin/pg_dump/pg_dump.c

index 4185c97fdb1766ce32352279c65aa4685b9bddcd..ab82e0d0f05bf8058d8f72878c89dbbab13af8e9 100644 (file)
@@ -4296,6 +4296,7 @@ append_depends_on_extension(Archive *fout,
        }
 
        PQclear(res);
+       destroyPQExpBuffer(query);
        pg_free(nm);
    }
 }