summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
index f30255ad5e7..c11339859d4 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
@@ -71,6 +71,7 @@ void ThreadContext::OnReset(void *arg) {
OnCreatedArgs *args = static_cast<OnCreatedArgs *>(arg);
StatInc(args->thr, StatThreadReuse);
sync.Reset();
+ DestroyAndFree(dead_info);
}
struct OnStartedArgs {
OpenPOWER on IntegriCloud