]> 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 49f0ee886afc17e963cc40521362643f317130ff..f36065f4a3ce9ec1846cd702a77e91f28f5c4b8a 100644 (file)
@@ -3491,6 +3491,7 @@ append_depends_on_extension(Archive *fout,
                }
 
                PQclear(res);
+               destroyPQExpBuffer(query);
                pg_free(nm);
        }
 }