[profiler] Fix PROF_TLS_FREE () on pthread TLS systems.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Mon, 3 Oct 2016 19:53:59 +0000 (21:53 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Mon, 3 Oct 2016 19:53:59 +0000 (21:53 +0200)
mono/profiler/mono-profiler-log.c

index 2afc325d6c2066b8b0d4c3e3868cf155d814ab3c..4f54fd7a632b45437d95c6a95e8692dc68faa503 100644 (file)
@@ -736,7 +736,7 @@ static __thread MonoProfilerThread *profiler_tls;
 #define PROF_TLS_SET(VAL) (pthread_setspecific (profiler_tls, (VAL)))
 #define PROF_TLS_GET() ((MonoProfilerThread *) pthread_getspecific (profiler_tls))
 #define PROF_TLS_INIT() (pthread_key_create (&profiler_tls, NULL))
-#define PROF_TLS_FREE() (pthread_key_delete (&profiler_tls))
+#define PROF_TLS_FREE() (pthread_key_delete (profiler_tls))
 
 static pthread_key_t profiler_tls;