From: Joerg Sonnenberger Date: Tue, 2 Jul 2013 19:46:18 +0000 (+0000) Subject: Don't free the C locale on NetBSD. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=392a178c3333bc61f7f830fbca8134f9610350cb;p=platform%2Fupstream%2Fllvm.git Don't free the C locale on NetBSD. llvm-svn: 185467 --- diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 79cb5c9..b15f077 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_); }