[unittest] Bug fix for c-api unittest
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 27 Jul 2020 02:00:15 +0000 (11:00 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 27 Jul 2020 04:13:55 +0000 (13:13 +0900)
Bug fix for c-api unittest when tensorflow-lite is not present
Bug of destroy info without create in invoke_01

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
tests/tizen_capi/unittest_tizen_capi.cc

index 2213472..e510dc3 100644 (file)
@@ -2342,12 +2342,13 @@ TEST (nnstreamer_capi_singleshot, invoke_01)
   status = ml_single_close (single);
   EXPECT_EQ (status, ML_ERROR_NONE);
 
+  ml_tensors_info_destroy (in_res);
+  ml_tensors_info_destroy (out_res);
+
 skip_test:
   g_free (test_model);
   ml_tensors_info_destroy (in_info);
   ml_tensors_info_destroy (out_info);
-  ml_tensors_info_destroy (in_res);
-  ml_tensors_info_destroy (out_res);
 }
 
 /**