[COMMITTERS] pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands()

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема [COMMITTERS] pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands()
Дата
Msg-id E1d7CQ4-0004Wz-82@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pg_dump: Don't leak memory in buildDefaultACLCommands()

buildDefaultACLCommands() didn't destroy the string buffer created in
certain cases, leading to a memory leak.  Fix by destroying the buffer
before returning from the function.

Spotted by Coverity.

Author: Michael Paquier

Back-patch to 9.6 where buildDefaultACLCommands() was added.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ef42c1103708cbbb77fff674f339d452a13aac14

Modified Files
--------------
src/bin/pg_dump/dumputils.c | 6 ++++++
1 file changed, 6 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: [COMMITTERS] pgsql: Allow queries submitted by postgres_fdw to be canceled.
Следующее
От: Bruce Momjian
Дата:
Сообщение: [COMMITTERS] pgsql: doc PG 10: adjustments to BRIN, WAL, JSON, XML items, syntax