From 38b8a8b97e0483cb9da5b2018f8d155be09761b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20St=C3=B6lp?= Date: Thu, 22 Oct 2020 20:24:56 +0200 Subject: fix memory leak when destroying Thread objects (#3) --- 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