Hey,<br><br>Attached is the patch with Raja&#39;s suggestion, it passes the regression suite.<br><br>Rodrigo<br><br><div><span class="gmail_quote">On 7/24/07, <b class="gmail_sendername">Raja R Harinath</b> &lt;<a href="mailto:rharinath@novell.com">
rharinath@novell.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Paolo Molaro &lt;<a href="mailto:lupus@ximian.com">
lupus@ximian.com</a>&gt; writes:<br><br>&gt; On 07/23/07 Rodrigo Kumpera wrote:<br>&gt;&gt; The attached patch fix a memory leak in class.c, memory is allocated in<br>&gt;&gt; mono_bounded_array_class_get and the copied in
<br>&gt;&gt; mono_metadata_get_generic_inst, but never freed.<br>&gt;<br>&gt; In this case it&#39;s better to have:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MonoType *args;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args = &amp;iface-&gt;byval_arg;<br>&gt; and pass &amp;args to the function.
<br><br>Better yet, just change the<br><br>&nbsp;&nbsp;MonoType **args;<br><br>to<br><br>&nbsp;&nbsp;MonoType *args [1];<br><br>- Hari<br>_______________________________________________<br>Mono-devel-list mailing list<br><a href="mailto:Mono-devel-list@lists.ximian.com">
Mono-devel-list@lists.ximian.com</a><br><a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br></blockquote></div><br>