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

index f3d7c106b33648d668271df96ee27b531027b81a..c385992c8be7fdd2609a6f05566a3b6f034c6947 100644 (file)
@@ -8847,6 +8847,8 @@ emit_extra_methods (MonoAotCompile *acfg)
        /* Emit the table */
        emit_aot_data (acfg, MONO_AOT_TABLE_EXTRA_METHOD_TABLE, "extra_method_table", buf, p - buf);
 
+       g_free (buf);
+
        /* 
         * Emit a table reverse mapping method indexes to their index in extra_method_info.
         * This is used by mono_aot_find_jit_info ().