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

@ -54,7 +54,7 @@ class OpBase
* intended to destroy the resources in the parent class. This can be done
* by passing the mFreeTensors=false.
*/
~OpBase()
virtual ~OpBase()
{
SPDLOG_DEBUG("Kompute OpBase destructor started");