diff options
Diffstat (limited to 'libc-top-half/musl/src/locale/freelocale.c')
-rw-r--r-- | libc-top-half/musl/src/locale/freelocale.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/locale/freelocale.c b/libc-top-half/musl/src/locale/freelocale.c new file mode 100644 index 0000000..385d120 --- /dev/null +++ b/libc-top-half/musl/src/locale/freelocale.c @@ -0,0 +1,14 @@ +#include <stdlib.h> +#include "locale_impl.h" + +#define malloc undef +#define calloc undef +#define realloc undef +#define free __libc_free + +void freelocale(locale_t l) +{ + if (__loc_is_allocated(l)) free(l); +} + +weak_alias(freelocale, __freelocale); |