pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix more memory leaks in failure path in buildACLCommands. 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix more memory leaks in failure path in buildACLCommands. @ 2015-02-11 23:35 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-02-11 23:35 UTC (permalink / raw) To: pgsql-committers Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proof by eliminating the separate exit path. It's still not exactly critical because pg_dump will curl up and die on failure; but since the amount of the potential leak is now several KB, it seems worth back-patching as far as 9.2 where the previous fix landed. Per Coverity, which evidently is smarter than clang's static analyzer. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/9179444d070713f53a97bc8f5c898a8304424c4d Modified Files -------------- src/bin/pg_dump/dumputils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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] 4+ messages in thread
* pgsql: Fix more memory leaks in failure path in buildACLCommands. @ 2015-02-11 23:35 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-02-11 23:35 UTC (permalink / raw) To: pgsql-committers Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proof by eliminating the separate exit path. It's still not exactly critical because pg_dump will curl up and die on failure; but since the amount of the potential leak is now several KB, it seems worth back-patching as far as 9.2 where the previous fix landed. Per Coverity, which evidently is smarter than clang's static analyzer. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ee8d3778311e08d810f79c97f90ffb678063a59f Modified Files -------------- src/bin/pg_dump/dumputils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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] 4+ messages in thread
* pgsql: Fix more memory leaks in failure path in buildACLCommands. @ 2015-02-11 23:35 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-02-11 23:35 UTC (permalink / raw) To: pgsql-committers Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proof by eliminating the separate exit path. It's still not exactly critical because pg_dump will curl up and die on failure; but since the amount of the potential leak is now several KB, it seems worth back-patching as far as 9.2 where the previous fix landed. Per Coverity, which evidently is smarter than clang's static analyzer. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5ea8cfe8f721418cc54e2847a3867331e57dee20 Modified Files -------------- src/bin/pg_dump/dumputils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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] 4+ messages in thread
* pgsql: Fix more memory leaks in failure path in buildACLCommands. @ 2015-02-11 23:35 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-02-11 23:35 UTC (permalink / raw) To: pgsql-committers Fix more memory leaks in failure path in buildACLCommands. We already had one go at this issue in commit d73b7f973db5ec7e, but we failed to notice that buildACLCommands also leaked several PQExpBuffers along with a simply malloc'd string. This time let's try to make the fix a bit more future-proof by eliminating the separate exit path. It's still not exactly critical because pg_dump will curl up and die on failure; but since the amount of the potential leak is now several KB, it seems worth back-patching as far as 9.2 where the previous fix landed. Per Coverity, which evidently is smarter than clang's static analyzer. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8b63f89498f2e3ff0e1d420b023ccb76c34c2cda Modified Files -------------- src/bin/pg_dump/dumputils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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] 4+ messages in thread
end of thread, other threads:[~2015-02-11 23:35 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-02-11 23:35 pgsql: Fix more memory leaks in failure path in buildACLCommands. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-11 23:35 pgsql: Fix more memory leaks in failure path in buildACLCommands. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-11 23:35 pgsql: Fix more memory leaks in failure path in buildACLCommands. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-11 23:35 pgsql: Fix more memory leaks in failure path in buildACLCommands. Tom Lane <tgl@sss.pgh.pa.us>
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