- Free GstTensorsConfig using gst_tensors_config_free
- Initialize ml_tensors_info_s before set a new one
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
if (found) {
_ml_tensors_info_copy_from_gst (info, &config.info);
*is_flexible = gst_tensors_config_is_flexible (&config);
- break;
}
+
+ gst_tensors_config_free (&config);
+ if (found)
+ break;
}
return found;
return ML_ERROR_TRY_AGAIN;
}
+ _ml_tensors_info_free (_info);
found = get_tensors_info_from_caps (caps, _info, &flexible);
if (found) {