aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/newlocale.31
1 files changed, 1 insertions, 0 deletions
diff --git a/man3/newlocale.3 b/man3/newlocale.3
index a999c04c76..ea9b11d653 100644
--- a/man3/newlocale.3
+++ b/man3/newlocale.3
@@ -366,6 +366,7 @@ main(int argc, char *argv[])
/* Free the locale object */
+ uselocale(LC_GLOBAL_HANDLE); /* So 'loc' is no longer in use */
freelocale(loc);
exit(EXIT_SUCCESS);