Hello,
The attached fixes two small leaks in the runtime.
Please review.
- Juraj
Index: metadata/icall.c
===================================================================
--- metadata/icall.c (revision 82204)
+++ metadata/icall.c (working copy)
@@ -4460,8 +4460,10 @@
if (!name)
return NULL;
- if (full_name && (object->type->type == MONO_TYPE_VAR || object->type->type == MONO_TYPE_MVAR))
+ if (full_name && (object->type->type == MONO_TYPE_VAR || object->type->type == MONO_TYPE_MVAR)) {
+ g_free (name);
return NULL;
+ }
res = mono_string_new (domain, name);
g_free (name);
Index: io-layer/io.c
===================================================================
--- io-layer/io.c (revision 82204)
+++ io-layer/io.c (working copy)
@@ -1790,6 +1790,8 @@
!_wapi_stat (utf8_name, &stat_src)) {
if (stat_dest.st_dev != stat_src.st_dev ||
stat_dest.st_ino != stat_src.st_ino) {
+ g_free (utf8_name);
+ g_free (utf8_dest_name);
SetLastError (ERROR_ALREADY_EXISTS);
return FALSE;
}
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list