commit | be764c946cee6b43b2bcfb4918aea3fa7888deaf | [log] [tgz] |
---|---|---|
author | Joerg Sonnenberger <joerg@bec.de> | Thu May 09 23:06:35 2013 +0000 |
committer | Joerg Sonnenberger <joerg@bec.de> | Thu May 09 23:06:35 2013 +0000 |
tree | 0f6c0ab2098f23c04656d06da8f77a39629b78fc | |
parent | b30abdd07a6c6374f4716b7e3a2e343f5db77961 [diff] [blame] |
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
diff --git a/src/locale.cpp b/src/locale.cpp index 7d0e629..97c2102 100644 --- a/src/locale.cpp +++ b/src/locale.cpp
@@ -1393,7 +1393,7 @@ codecvt<wchar_t, char, mbstate_t>::~codecvt() { - if (__l != 0) + if (__l != _LIBCPP_GET_C_LOCALE) freelocale(__l); }