diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-07-02 19:46:18 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-07-02 19:46:18 +0000 |
commit | 392a178c3333bc61f7f830fbca8134f9610350cb (patch) | |
tree | 3ecbdab6c7f9a78635f8f80778620278ccabdf12 /libcxx/src | |
parent | a85d364badba0172558b6c0aaef30cb0e1deba42 (diff) | |
download | bcm5719-llvm-392a178c3333bc61f7f830fbca8134f9610350cb.tar.gz bcm5719-llvm-392a178c3333bc61f7f830fbca8134f9610350cb.zip |
Don't free the C locale on NetBSD.
llvm-svn: 185467
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 79cb5c92d48..b15f077cfb1 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_); } |