From 392a178c3333bc61f7f830fbca8134f9610350cb Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 2 Jul 2013 19:46:18 +0000 Subject: [PATCH] Don't free the C locale on NetBSD. llvm-svn: 185467 --- libcxx/src/locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 79cb5c92d480..b15f077cfb12 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -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_); } -- 2.34.1