Commit 396f4f0a authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[ContextManager] Fix Context deallocation

If the CONTEXT_MANAGER_WITH_MEMORY_MANAGER is enabled, then we need to
use putMemory().
parent ba7564c3
Pipeline #83015 failed with stages
in 4 minutes and 38 seconds
......@@ -45,7 +45,7 @@ void ContextManager::putFreeContext(Context* context) {
context->recordStackUsage();
}
if constexpr (!emper::CONTEXT_MANAGER_WITH_MEMORY_MANAGER) {
if constexpr (emper::CONTEXT_MANAGER_WITH_MEMORY_MANAGER) {
putMemory(context);
} else {
delete context;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment