[Mono-dev] [PATCH] Memory leak in mono_bounded_array_class_get
Paolo Molaro
lupus at ximian.com
Tue Jul 24 09:53:16 EDT 2007
On 07/23/07 Rodrigo Kumpera wrote:
> The attached patch fix a memory leak in class.c, memory is allocated in
> mono_bounded_array_class_get and the copied in
> mono_metadata_get_generic_inst, but never freed.
In this case it's better to have:
MonoType *args;
args = &iface->byval_arg;
and pass &args to the function.
Thanks!
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list