This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++ PATCH] Fix leak in _Rb_tree::_M_insert (stl_tree.h)
- From: Earl Chew <earl_chew at agilent dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Feb 2005 21:29:27 -0800
- Subject: Re: [libstdc++ PATCH] Fix leak in _Rb_tree::_M_insert (stl_tree.h)
- Organization: Agilent Technologies
- References: <421E8AE2.1050108@agilent.com> <m3sm3le3qw.fsf@uniton.integrable-solutions.net>
Gabriel Dos Reis wrote:
Would there be a way to systematize these expclicit try-block without
efficiency loss (a la RAII or sentry)?
Yes, RAII is preferred, but I decided to keep within the spirit of what
was already there to fix this bug rather than rewrite this and
other sections.
Earl