2003-10-16 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Oct 2003 17:24:07 +0000 (17:24 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Oct 2003 17:24:07 +0000 (17:24 +0000)
commit1bd8b85956d3fb18ce9efbdd6fabb23212d46637
tree4980f05e99f727db30eb95c041e7c98bb689d201
parent12440823ab56be8e6e11a7292fc38a92c4e5ae33
2003-10-16  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12540
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
Don't leak memory if new throws.
* src/locale.cc (locale::locale(const char*)): In order not
to leak memory in case new throws, use a basic_string type
for __res too and avoid strdup.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72553 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/gnu/monetary_members.cc
libstdc++-v3/src/locale.cc