diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-05-09 23:06:35 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-05-09 23:06:35 +0000 |
commit | dd6a025986ac1f67f6635ff085dcd7fea9fb7789 (patch) | |
tree | bd4eef19fb4e394bed827029eae98c0c73bb52d7 | |
parent | 2edd9709c658e65c7bc8d3ab50e1c63857db8069 (diff) | |
download | bcm5719-llvm-dd6a025986ac1f67f6635ff085dcd7fea9fb7789.tar.gz bcm5719-llvm-dd6a025986ac1f67f6635ff085dcd7fea9fb7789.zip |
Don't try to free the C locale.
llvm-svn: 181559
-rw-r--r-- | libcxx/src/locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 7d0e62980ce..97c2102c1b5 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -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); } |