[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc...
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 23 May 2014 19:38:35 +0000 (15:38 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 23 May 2014 21:34:30 +0000 (17:34 -0400)
commit4d564229605151345eaf05cdbdb3c71cf08bda58
tree8e7582b29ca6d8d8ead8f63d9510909f6b9bb445
parent5e905069c434ee21928951a345eeeff52b228158
[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc'd strings.

The use case for this function compared to the one that take MonoClass/MonoImage is for lookups
and the failed names are usually freshly alloc'd.

Fix a leak in class.c usage of mono_error_set_type_load_name.
mono/utils/mono-error.c