about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/regcomp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 9bb06aa7bf..14147804f4 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -696,12 +696,10 @@ re_comp (s)
 }
 
 #ifdef _LIBC
-static void __attribute__ ((unused))
-free_mem (void)
+libc_freeres_fn (free_mem)
 {
   __regfree (&re_comp_buf);
 }
-text_set_element (__libc_subfreeres, free_mem);
 #endif
 
 #endif /* _REGEX_RE_COMP */