diff --git a/src/locale.cpp b/src/locale.cpp index 7d0e6298..97c2102c 100644 --- a/src/locale.cpp +++ b/src/locale.cpp @@ -1393,7 +1393,7 @@ codecvt::codecvt(const char* nm, size_t refs) codecvt::~codecvt() { - if (__l != 0) + if (__l != _LIBCPP_GET_C_LOCALE) freelocale(__l); }