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
[Coverity] Fix samples resource leak issue (#30040)
Pawel Raaszd0e6ef4714e5
diff --git a/samples/c/hello_classification/infer_result_util.c b/samples/c/hello_classification/infer_result_util.cindex 21d75bdd304..1a4e5d52442 100644--- a/samples/c/hello_classification/infer_result_util.c+++ b/samples/c/hello_classification/infer_result_util.c@@ -35,6 +35,7 @@ struct infer_result* tensor_to_infer_result(ov_tensor_t* tensor, size_t* result_void* data = NULL;status = ov_tensor_data(tensor, &data);if (status != OK) {+ ov_shape_free(&output_shape);free(results);return NULL;}