OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
fix CID issue 1590212 (#28543)
Sun Xiaoxia60a3f0cc2a09
diff --git a/src/inference/src/dev/threading/cpu_streams_executor.cpp b/src/inference/src/dev/threading/cpu_streams_executor.cppindex 0313c4f5aab..bb47b813dce 100644--- a/src/inference/src/dev/threading/cpu_streams_executor.cpp+++ b/src/inference/src/dev/threading/cpu_streams_executor.cpp@@ -504,7 +504,12 @@ void CPUStreamsExecutor::cpu_reset() {CPUStreamsExecutor::CPUStreamsExecutor(const IStreamsExecutor::Config& config) : _impl{new Impl{config}} {}CPUStreamsExecutor::~CPUStreamsExecutor() {- cpu_reset();+ try {+ cpu_reset();+ } catch (const ov::Exception&) {+ // Destructor should not throw - catch needed for static analysis.+ OPENVINO_THROW("Reset CPU state error.");+ }{std::lock_guard<std::mutex> lock(_impl->_mutex);_impl->_isStopped = true;