mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[poincare] Fix leak in Power::computeOnMatrixAndComplex
Change-Id: I009947c02053ceef967fb7d68524c7cf61db9c90
This commit is contained in:
@@ -106,7 +106,9 @@ template<typename T> Matrix * Power::computeOnMatrixAndComplex(const Matrix * m,
|
||||
delete result;
|
||||
return nullptr;
|
||||
}
|
||||
result = Multiplication::computeOnMatrices<T>(result, m);
|
||||
Matrix * mult = Multiplication::computeOnMatrices<T>(result, m);
|
||||
delete result;
|
||||
result = mult;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user