[libcxx] r185467 - Don't free the C locale on NetBSD.
Joerg Sonnenberger
joerg at bec.de
Tue Jul 2 12:46:19 PDT 2013
Author: joerg
Date: Tue Jul 2 14:46:18 2013
New Revision: 185467
URL: http://llvm.org/viewvc/llvm-project?rev=185467&view=rev
Log:
Don't free the C locale on NetBSD.
Modified:
libcxx/trunk/src/locale.cpp
Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=185467&r1=185466&r2=185467&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Tue Jul 2 14:46:18 2013
@@ -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_);
}
More information about the cfe-commits
mailing list