From 1121f5a8b93016992e122150ea3c867204ab407b Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 22 Oct 2020 20:13:38 +0200 Subject: fix memory leak when destroying Thread objects --- lib/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/executor.cc') diff --git a/lib/executor.cc b/lib/executor.cc index bfc268a..52bdf01 100644 --- a/lib/executor.cc +++ b/lib/executor.cc @@ -27,6 +27,6 @@ namespace nMatcha { } void Executor::yield_to(const Thread* t) { - ::yield(t->mStackPtr, &mStackPtr); + ::yield(t->mStack.mPtr, &mStackPtr); } } // namespace nMatcha -- cgit v1.2.3