summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/application/api/common/source/Model.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/application/api/common/source/Model.cc b/source/application/api/common/source/Model.cc
index 80c10b7..f365c89 100644
--- a/source/application/api/common/source/Model.cc
+++ b/source/application/api/common/source/Model.cc
@@ -98,6 +98,7 @@ bool arm::app::Model::Init(uint8_t* tensorArenaAddr,
if (allocate_status != kTfLiteOk) {
printf_err("tensor allocation failed!\n");
delete this->m_pInterpreter;
+ this->m_pInterpreter = nullptr;
return false;
}