Don't free the C locale on NetBSD.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2013-07-02 19:46:18 +00:00
parent 4573565de0
commit 9a06b9d017

View File

@ -5340,7 +5340,7 @@ __time_put::__time_put(const string& nm)
__time_put::~__time_put()
{
if (__loc_)
if (__loc_ != _LIBCPP_GET_C_LOCALE)
freelocale(__loc_);
}