[runtime] Free patches list
authorAlexander Kyte <alkyte@microsoft.com>
Wed, 6 Jul 2016 22:56:22 +0000 (18:56 -0400)
committerAlexander Kyte <alkyte@microsoft.com>
Thu, 7 Jul 2016 19:22:21 +0000 (15:22 -0400)
mono/mini/aot-compiler.c

index 89c46f9d09f97e5c056f03522cb408e13fd2a361..9b2636cb248959e365ac06844ab1e1827993f8de 100644 (file)
@@ -6524,6 +6524,7 @@ emit_trampoline_full (MonoAotCompile *acfg, int got_offset, MonoTrampInfo *info,
 
        encode_patch_list (acfg, patches, patches->len, FALSE, got_offset, p, &p);
        g_assert (p - buf < buf_size);
+       g_ptr_array_free (patches, TRUE);
 
        sprintf (symbol, "%s%s_p", acfg->user_symbol_prefix, name);