change function to free list (elements in the list contain the dynamic-allocated memory, we should free all these elements)
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
}
if (tflite_info->labels) {
- g_list_free (tflite_info->labels);
+ g_list_free_full (tflite_info->labels, g_free);
tflite_info->labels = NULL;
}
}
tflite_info->box_priors[row][column++] = atof (buff);
}
- g_list_free (box_priors);
+ g_list_free_full (box_priors, g_free);
return TRUE;
}
}
if (tflite_info->labels) {
- g_list_free (tflite_info->labels);
+ g_list_free_full (tflite_info->labels, g_free);
tflite_info->labels = NULL;
}
}