[libstdc++ PATCH] Fix leak in _Rb_tree::_M_insert (stl_tree.h)

Jonathan Wakely cow@compsoc.man.ac.uk
Fri Feb 25 13:26:00 GMT 2005


On Fri, Feb 25, 2005 at 12:58:13PM +0000, Jonathan Wakely wrote:

> On Thu, Feb 24, 2005 at 09:29:27PM -0800, Earl Chew wrote:
> 
> > 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.
> 
> No need to change anything outside that function, see patch.

Re-reading that I see you didn't mean you'd need to change other
sections to use RAII, just that it'd be inconsistent if you didn't.
Sorry for the misunderstanding, I'll try to pay more attention!

jon


-- 
"Anybody who wants the presidency so much that he'll spend two years
 organizing and campaigning for it is not to be trusted with the office."
	- David Broder



More information about the Libstdc++ mailing list