[Mono-bugs] [Bug 78023][Nor] New - memory leak in metadata.c

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 5 14:45:01 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by toshok at ximian.com.


--- shadow/78023	2006-04-05 14:45:01.000000000 -0400
+++ shadow/78023.tmp.11814	2006-04-05 14:45:01.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 78023
+Product: Mono: Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: toshok at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: memory leak in metadata.c
+using svn head.
+mono_metadata_parse_generic_param contains a pretty blatant memory leak in
+the "if (!generic_container)" block.  this leaks ~30k in my program.
+valgrind also comes up with the following trace (at another 30k):
+==9898== 33906 (30264 direct, 3642 indirect) bytes in 2733 blocks are
+definitely lost in loss record 65 of 70
+==9898==    at 0x1B904C05: calloc (in /usr/lib/valgrind2/vgpreload_memcheck.so)
+==9898==    by 0x1B95D4E2: g_malloc0 (in /opt/gnome/lib/libglib-2.0.so.0.800.1)
+==9898==    by 0x80E032E: inflate_generic_type (class.c:126)
+==9898==    by 0x80E04C1: mono_class_inflate_generic_type (class.c:564)
+==9898==    by 0x80E07B6: mono_get_inflated_generic_class (class.c:2937)
+==9898==    by 0x80E3599: mono_class_from_mono_type (class.c:3167)
+==9898==    by 0x80E30EC: mono_bounded_array_class_get (class.c:3245)
+==9898==    by 0x80E3404: mono_array_class_get (class.c:3329)
+==9898==    by 0x80E365B: mono_class_from_mono_type (class.c:3161)
+==9898==    by 0x810F710: mono_compile_create_var (mini.c:1669)
+==9898==    by 0x812F368: mini_method_compile (mini.c:9106)
+==9898==    by 0x813017A: mono_jit_compile_method (mini.c:10004)

More information about the mono-bugs mailing list