X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fprofiler%2Fmono-profiler-vtune.c;h=78de58aaa08de08e66e16439a294f494979335c5;hb=fcca9846c82626dd094b2ca0c5f35991f8afc3a5;hp=3db0659c77549777b62e6b86fe53217c1495eea2;hpb=1dec57e9ee8fa09a657f1b687944f17f468f90e5;p=mono.git diff --git a/mono/profiler/mono-profiler-vtune.c b/mono/profiler/mono-profiler-vtune.c index 3db0659c775..78de58aaa08 100644 --- a/mono/profiler/mono-profiler-vtune.c +++ b/mono/profiler/mono-profiler-vtune.c @@ -109,7 +109,7 @@ method_jit_result (MonoProfiler *prof, MonoMethod *method, MonoJitInfo* jinfo, i sourceLoc = mono_debug_lookup_source_location (method, dmji->line_numbers[i].native_offset, mono_domain_get()); if (sourceLoc == NULL) { - free(vtuneMethod.line_number_table); + g_free (vtuneMethod.line_number_table); vtuneMethod.line_number_table = NULL; vtuneMethod.line_number_size = 0; break; @@ -126,9 +126,9 @@ method_jit_result (MonoProfiler *prof, MonoMethod *method, MonoJitInfo* jinfo, i iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, &vtuneMethod); if (vtuneMethod.source_file_name != NULL) - free(vtuneMethod.source_file_name); + g_free (vtuneMethod.source_file_name); if (vtuneMethod.line_number_table != NULL) - free(vtuneMethod.line_number_table); + g_free (vtuneMethod.line_number_table); g_free (signature); g_free (name); @@ -167,7 +167,7 @@ mono_profiler_startup (const char *desc) iJIT_IsProfilingActiveFlags flags = iJIT_IsProfilingActive(); if (flags == iJIT_SAMPLING_ON) { - mono_profiler_install (NULL, MONO_PROFILER_VERSION, codeanalyst_shutdown); + mono_profiler_install (NULL, codeanalyst_shutdown); mono_profiler_install_jit_end (method_jit_result); mono_profiler_install_code_buffer_new (code_buffer_new); mono_profiler_set_events (MONO_PROFILE_JIT_COMPILATION);