freelocale - free resources allocated for a locale object
#include <locale.h> void freelocale(locale_t locobj);
The freelocale() function causes the resources allocated for a locale object returned by a call to the newlocale() or duplocale() functions to be released.
The behavior is undefined if the locobj argument is the special locale object LC_GLOBAL_LOCALE or is not a valid locale object handle.
Any use of a locale object that has been freed results in undefined behavior.
No errors are defined.
See attributes(7) for descriptions of the following attributes: