{
int status;
ml_tensors_info_h info;
- ml_tensors_data_h data;
+ ml_tensors_data_h data = nullptr;
status = ml_tensors_info_create (&info);
ASSERT_EQ (status, ML_ERROR_NONE);
status = ml_tensors_info_destroy (info);
ASSERT_EQ (status, ML_ERROR_NONE);
+
+ status = ml_tensors_data_destroy (data);
+ EXPECT_EQ (status, ML_ERROR_INVALID_PARAMETER);
}
/**
{
ml_single_h single;
ml_tensors_info_h in_info, out_info;
- ml_tensors_info_h in_res, out_res;
+ ml_tensors_info_h in_res = nullptr, out_res = nullptr;
ml_tensors_data_h input, output;
ml_tensor_dimension in_dim, out_dim, res_dim;
ml_tensor_type_e type = ML_TENSOR_TYPE_UNKNOWN;
NNSTREAMER_SO_FILE_EXTENSION;
ml_single_h single;
ml_tensors_info_h in_info, out_info;
- ml_tensors_info_h in_res, out_res;
+ ml_tensors_info_h in_res = nullptr, out_res = nullptr;
ml_tensors_data_h input, output;
ml_tensor_dimension in_dim, out_dim, res_dim;
ml_tensor_type_e type = ML_TENSOR_TYPE_UNKNOWN;