]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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 1efc22559d95915a375fa6549076ce44d6cb68f9..8b3b1bf91ec468f967442b64798c2d27bad80d40 100644 (file)
@@ -3990,6 +3990,7 @@ append_depends_on_extension(Archive *fout,
                }
 
                PQclear(res);
+               destroyPQExpBuffer(query);
                pg_free(nm);
        }
 }