fix trtModelStream release
@ -66,7 +66,7 @@ YOLOv8::YOLOv8(const std::string& engine_file_path)
this->engine = this->runtime->deserializeCudaEngine(trtModelStream, size);
assert(this->engine != nullptr);
delete[] trtModelStream;
this->context = this->engine->createExecutionContext();
assert(this->context != nullptr);
@ -72,7 +72,7 @@ YOLOv8::YOLOv8(const std::string& engine_file_path)
@ -80,7 +80,7 @@ YOLOv8_pose::YOLOv8_pose(const std::string &engine_file_path) {
@ -76,7 +76,7 @@ YOLOv8_seg::YOLOv8_seg(const std::string& engine_file_path)