Apply commit
2022-12-27 Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions
#ifdef _LIBC
/* If we want to free all resources we have to do some work at
program's end. */
-libc_freeres_fn (free_mem)
+void
+__intl_freemem (void)
{
void *old;
#ifdef _LIBC
/* This is called from iconv/gconv_db.c's free_mem, as locales must
be freed before freeing gconv steps arrays. */
-void __libc_freeres_fn_section
+void
_nl_finddomain_subfreeres (void)
{
struct loaded_l10nfile *runp = _nl_loaded_domains;
#ifdef _LIBC
void
-__libc_freeres_fn_section
_nl_unload_domain (struct loaded_domain *domain)
{
size_t i;
};
-# ifndef _LIBC
-# define libc_freeres_ptr(decl) decl
-# endif
-
-libc_freeres_ptr (static char *string_space);
+static char *string_space;
static size_t string_space_act;
static size_t string_space_max;
-libc_freeres_ptr (static struct alias_map *map);
+static struct alias_map *map;
static size_t nmap;
static size_t maxmap;
return strcasecmp (map1->alias, map2->alias);
}
+void
+__libc_localealias_freemem (void)
+{
+ free (string_space);
+ free (map);
+}
+
#endif