diff --git a/src/models/AbstractModel.h b/src/models/AbstractModel.h index 76efcdb07..958f248aa 100644 --- a/src/models/AbstractModel.h +++ b/src/models/AbstractModel.h @@ -340,6 +340,7 @@ class AbstractModel: public std::enable_shared_from_this> { } else { this->stateRewardVector = transitionMatrix.getPointwiseProductRowSumVector(transitionRewardMatrix.get()); } + this->transitionRewardMatrix.reset(); } /*!