summaryrefslogtreecommitdiff
path: root/libstdc++-v3/ChangeLog
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2003-10-16 17:24:07 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2003-10-16 17:24:07 +0000
commitf991b1d853560928299d8dea3885da56ad8048b6 (patch)
tree4980f05e99f727db30eb95c041e7c98bb689d201 /libstdc++-v3/ChangeLog
parent968e3f935ba908bea6ff1348e033be77f652586d (diff)
downloadgcc-f991b1d853560928299d8dea3885da56ad8048b6.tar.gz
re PR libstdc++/12540 (Memory leak in locale::locale(const char*))
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. From-SVN: r72553
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r--libstdc++-v3/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 6b73aee7103..c53f88538f6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,13 @@
+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.
+
2003-10-14 Jeff Bailey <jbailey@nisa.net>
PR libstdc++/12562