[Coverity] Fix coverity issue
authorhyunil park <hyunil46.park@samsung.com>
Fri, 25 Aug 2023 05:42:57 +0000 (14:42 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 25 Aug 2023 07:07:40 +0000 (16:07 +0900)
commit43eafdb555fb37496cc5017ddb48a100df704961
treed6266be26bddf682b5a7fefd7794cd7a058fb14a
parent85ef49aaf72b58798973d6d7bee638d7f8f20e07
[Coverity] Fix coverity issue

Resource leak occurs after ml_tensor_get_count() failure
- need to free ml_tensors_data_h
- change function call order to fix leak

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
c/src/ml-api-service-query-client.c