about summary refs log tree commit diff
path: root/locale/freelocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/freelocale.c')
-rw-r--r--locale/freelocale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/freelocale.c b/locale/freelocale.c
index ba0ae85d84..ec169bcb66 100644
--- a/locale/freelocale.c
+++ b/locale/freelocale.c
@@ -34,6 +34,10 @@ __freelocale (__locale_t dataset)
 {
   int cnt;
 
+  /* This static object is returned for newlocale (LC_ALL_MASK, "C").  */
+  if (dataset == &_nl_C_locobj)
+    return;
+
   /* We modify global data (the usage counts).  */
   __libc_lock_lock (__libc_setlocale_lock);