[Patch] Fix exception unsafety of __numpunt_cache

Paolo Carlini pcarlini@suse.de
Mon Nov 24 01:06:00 GMT 2003


Hi,

after all the work for locale.cc and localename.cc, it looks like
there are three remaining new calls not wrapped in try/catch, thus
leading to memory leaks if the second or third throw.

I have fixed the problem in the standard way, already used everywhere.

Tested x86-linux.

Ok with you, Benjamin?

Paolo.

//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_es_cache
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031124/d681410b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_es_cache
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031124/d681410b/attachment-0001.ksh>


More information about the Libstdc++ mailing list