From 9c9e9bf70fd47b6c3938caa2075d9914e7e85f87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 11 Apr 2016 01:29:10 +0200 Subject: [PATCH] [metadata] Guard access to mb->locals_list with DISABLE_JIT ifdef The field is only available when DISABLE_JIT is not defined. --- mono/metadata/method-builder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mono/metadata/method-builder.c b/mono/metadata/method-builder.c index 4f6eb93ba60..09e6027f4a0 100644 --- a/mono/metadata/method-builder.c +++ b/mono/metadata/method-builder.c @@ -185,9 +185,11 @@ mono_mb_create_method (MonoMethodBuilder *mb, MonoMethodSignature *signature, in #endif } +#ifndef DISABLE_JIT /* Free the locals list so mono_mb_free () doesn't free the types twice */ g_list_free (mb->locals_list); mb->locals_list = NULL; +#endif method->signature = signature; if (!signature->hasthis) -- 2.25.1