From a204b04faed3e482cafb7a929f93b876e487c207 Mon Sep 17 00:00:00 2001 From: River Li Date: Wed, 22 Mar 2023 13:45:03 +0800 Subject: [PATCH] fix mem leak (#16456) --- samples/c/hello_classification/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/c/hello_classification/main.c b/samples/c/hello_classification/main.c index b3748356ad2..4fbf0c5f7a9 100644 --- a/samples/c/hello_classification/main.c +++ b/samples/c/hello_classification/main.c @@ -72,6 +72,7 @@ struct infer_result* tensor_to_infer_result(ov_tensor_t* tensor, size_t* result_ results[i].probability = float_data[i]; } + ov_shape_free(&output_shape); return results; }