[Mono-dev] Incorect malloc/g_free mixing in metadata/locales.c

Aras Pranckevicius aras at unity3d.com
Thu Mar 19 12:54:29 EDT 2009


Hi,

mono/metadata/locales.c incorrectly mixes malloc and g_free, which
causes problems for certain locales (the ones that have "." or "@" in
their names) if malloc does not do the same as g_malloc. Like in our
(Unity) use case on some platforms.

I just checked anonsvn of latest mono trunk, and the problem still
seems to be there.

mono/metadata/locales.c, lines 391 and 410: malloc should be changed
to g_malloc.


Regards,

-- 
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info


More information about the Mono-devel-list mailing list