mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[poincare] Fix memory leak in mapReduce
This commit is contained in:
committed by
EmilieNumworks
parent
fba21344b1
commit
2d30b24d4f
@@ -78,6 +78,7 @@ template<typename T> Evaluation<T> * ApproximationEngine::mapReduce(const Expres
|
||||
result = intermediateResult;
|
||||
assert(result != nullptr);
|
||||
if (result->isUndefined()) {
|
||||
delete result;
|
||||
return new Complex<T>(Complex<T>::Undefined());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user