[libcxx] r181559 - Don't try to free the C locale.
Joerg Sonnenberger
joerg at bec.de
Thu May 9 16:06:35 PDT 2013
Author: joerg
Date: Thu May 9 18:06:35 2013
New Revision: 181559
URL: http://llvm.org/viewvc/llvm-project?rev=181559&view=rev
Log:
Don't try to free the C locale.
Modified:
libcxx/trunk/src/locale.cpp
Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=181559&r1=181558&r2=181559&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Thu May 9 18:06:35 2013
@@ -1393,7 +1393,7 @@ codecvt<wchar_t, char, mbstate_t>::codec
codecvt<wchar_t, char, mbstate_t>::~codecvt()
{
- if (__l != 0)
+ if (__l != _LIBCPP_GET_C_LOCALE)
freelocale(__l);
}
More information about the cfe-commits
mailing list