diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-10-22 20:13:38 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-10-22 20:13:38 +0200 |
commit | 1121f5a8b93016992e122150ea3c867204ab407b (patch) | |
tree | eea70053287689f266428fc9ed2c2e425079078b /lib/executor.cc | |
parent | 3b4a6097dee760d22eecd97ebe041c69da6b056a (diff) | |
download | matcha-threads-fix-mem-leak-stack.tar.gz matcha-threads-fix-mem-leak-stack.zip |
fix memory leak when destroying Thread objectsfix-mem-leak-stack
Diffstat (limited to 'lib/executor.cc')
-rw-r--r-- | lib/executor.cc | 2 |
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 |