postgres.git / summary / log / commit / refs
commit 046001fe3cf59e19b2e8c24b82fb2e9b8ab6edd4
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Mon Mar 16 19:27:13 2020 +0000
First released in: 13.0, 9.6.18, 10.13, 11.8, 12.3
Plug memory leak
Introduced by b08dee24a557. Noted by Coverity.
src/bin/pg_dump/pg_dump.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 28312e14ef0..ced0681ec37 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -4335,6 +4335,7 @@ append_depends_on_extension(Archive *fout,
}
PQclear(res);
+ destroyPQExpBuffer(query);
pg_free(nm);
}
}
[parent: 013c1f6af6c5]