summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-03-16 16:27:13 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-03-16 16:27:13 -0300
commit7984c7e9fcd9468007c3ac51ba65f9642ba4dc4b (patch)
tree33d2f4f77e22be61cd928561dc468be1a6c772f8 /src
parentb83da9e6ee4b4445a3c62bcd5d2da16de7e4bd70 (diff)
Plug memory leak
Introduced by b08dee24a557. Noted by Coverity.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 49f0ee886af..f36065f4a3c 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -3491,6 +3491,7 @@ append_depends_on_extension(Archive *fout,
}
PQclear(res);
+ destroyPQExpBuffer(query);
pg_free(nm);
}
}