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:
parent
b30abdd07a
commit
be764c946c
@ -1393,7 +1393,7 @@ codecvt<wchar_t, char, mbstate_t>::codecvt(const char* nm, size_t refs)
|
||||
|
||||
codecvt<wchar_t, char, mbstate_t>::~codecvt()
|
||||
{
|
||||
if (__l != 0)
|
||||
if (__l != _LIBCPP_GET_C_LOCALE)
|
||||
freelocale(__l);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user