diff options
Diffstat (limited to 'iconv/gconv_cache.c')
-rw-r--r-- | iconv/gconv_cache.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/iconv/gconv_cache.c b/iconv/gconv_cache.c index f7dca0285a..8f92cbaf67 100644 --- a/iconv/gconv_cache.c +++ b/iconv/gconv_cache.c @@ -445,8 +445,7 @@ __gconv_release_cache (struct __gconv_step *steps, size_t nsteps) /* Free all resources if necessary. */ -static void __attribute__ ((unused)) -free_mem (void) +libc_freeres_fn (free_mem) { if (cache_malloced) free (gconv_cache); @@ -455,5 +454,3 @@ free_mem (void) __munmap (gconv_cache, cache_size); #endif } - -text_set_element (__libc_subfreeres, free_mem); |