aboutsummaryrefslogtreecommitdiff
path: root/lib/executor.cc
diff options
context:
space:
mode:
authorJohannes Stölp <johannes.stoelp@gmail.com>2020-10-22 20:24:56 +0200
committerGitHub <noreply@github.com>2020-10-22 20:24:56 +0200
commit38b8a8b97e0483cb9da5b2018f8d155be09761b9 (patch)
treeeea70053287689f266428fc9ed2c2e425079078b /lib/executor.cc
parent3b4a6097dee760d22eecd97ebe041c69da6b056a (diff)
downloadmatcha-threads-38b8a8b97e0483cb9da5b2018f8d155be09761b9.tar.gz
matcha-threads-38b8a8b97e0483cb9da5b2018f8d155be09761b9.zip
fix memory leak when destroying Thread objects (#3)
Diffstat (limited to 'lib/executor.cc')
-rw-r--r--lib/executor.cc2
1 files changed, 1 insertions, 1 deletions
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