From 5aba35799e6f77360af1eb01dd77cd8937ad162a Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Tue, 1 Aug 2023 16:09:17 +0900 Subject: [PATCH] [CodeClean] missed tag Code clean, condition to release mem-block and add missed tag. Signed-off-by: Jaeyun Jung --- c/src/ml-api-common.c | 4 ++-- c/src/ml-api-inference-internal.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/c/src/ml-api-common.c b/c/src/ml-api-common.c index 2f0d169..67fe170 100644 --- a/c/src/ml-api-common.c +++ b/c/src/ml-api-common.c @@ -823,9 +823,9 @@ _ml_tensors_info_free (ml_tensors_info_s * info) g_free (info->extra[i].name); } } - } - g_free (info->extra); + g_free (info->extra); + } _ml_tensors_info_initialize (info); } diff --git a/c/src/ml-api-inference-internal.c b/c/src/ml-api-inference-internal.c index c6df346..98ccfab 100644 --- a/c/src/ml-api-inference-internal.c +++ b/c/src/ml-api-inference-internal.c @@ -52,6 +52,9 @@ convert_ml_tensor_type_from (tensor_type type) return (ml_tensor_type_e) type; } +/** + * @brief Check tensor-info has extended rank value. + */ static gboolean gst_info_is_extended (const GstTensorsInfo * gst_info) { -- 2.7.4