about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/lc-time.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/locale/lc-time.c b/locale/lc-time.c
index 04dff64532..1e76e10c76 100644
--- a/locale/lc-time.c
+++ b/locale/lc-time.c
@@ -248,3 +248,12 @@ _nl_get_walt_digit (unsigned int number)
 
   return (wchar_t *) result;
 }
+
+
+static void
+free_mem (void)
+{
+  free (alt_digits);
+  free (walt_digits);
+}
+text_set_element (__libc_subfreeres, free_mem);