Fixed #15 memory leak by introducing virtual function into all operation base classes to ensure the dependent class destructors are called

This commit is contained in:
Alejandro Saucedo 2020-08-30 14:15:09 +01:00
parent d4cc61817e
commit 5be21da7c2
9 changed files with 114 additions and 35 deletions

View file

@ -84,7 +84,7 @@ class OpMult : public OpAlgoBase<tX, tY, tZ>
* Default destructor, which is in charge of destroying the algorithm
* components but does not destroy the underlying tensors
*/
~OpMult() {
~OpMult() override {
SPDLOG_DEBUG("Kompute OpMult destructor started");
}