Don't try to free the C locale.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@181559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2013-05-09 23:06:35 +00:00
parent b30abdd07a
commit be764c946c

View File

@ -1393,7 +1393,7 @@ codecvt<wchar_t, char, mbstate_t>::codecvt(const char* nm, size_t refs)
codecvt<wchar_t, char, mbstate_t>::~codecvt() codecvt<wchar_t, char, mbstate_t>::~codecvt()
{ {
if (__l != 0) if (__l != _LIBCPP_GET_C_LOCALE)
freelocale(__l); freelocale(__l);
} }