pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands() 2+ messages / 1 participants [nested] [flat]
* pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands() @ 2017-05-07 02:59 Stephen Frost <sfrost@snowman.net> 0 siblings, 0 replies; 2+ messages in thread From: Stephen Frost @ 2017-05-07 02:59 UTC (permalink / raw) To: 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/09f842181943b6e83b0779f2e872ff0180b66883 Modified Files -------------- src/bin/pg_dump/dumputils.c | 6 ++++++ 1 file changed, 6 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands() @ 2017-05-07 02:59 Stephen Frost <sfrost@snowman.net> 0 siblings, 0 replies; 2+ messages in thread From: Stephen Frost @ 2017-05-07 02:59 UTC (permalink / raw) To: 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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-05-07 02:59 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-05-07 02:59 pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands() Stephen Frost <sfrost@snowman.net> 2017-05-07 02:59 pgsql: pg_dump: Don't leak memory in buildDefaultACLCommands() Stephen Frost <sfrost@snowman.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox