Skip to content

Commit

Permalink
fix use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Mar 17, 2023
1 parent b81a2b1 commit 1e6aa3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/components/jomjol_tfliteclass/CTfLiteClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ CTfLiteClass::CTfLiteClass()

CTfLiteClass::~CTfLiteClass()
{
free(modelfile);

free(this->tensor_arena);
delete this->interpreter;
delete this->error_reporter;

free_psram_heap(std::string(TAG) + "->modelfile", modelfile);
free_psram_heap(std::string(TAG) + "->tensor_arena", this->tensor_arena);
}


Expand Down

0 comments on commit 1e6aa3f

Please sign in to comment.