1#include <stdlib.h>
2#include "locale_impl.h"
3#include "libc.h"
4
5int __loc_is_allocated(locale_t);
6
7void freelocale(locale_t l)
8{
9	if (__loc_is_allocated(l)) free(l);
10}
11
12weak_alias(freelocale, __freelocale);
13