/* The col_list is only partly managed by the custom preference API because its data is shared between multiple preferences, so it's freed here  */
static void free_col_info(GList *)
/* The col_list is only partly managed by the custom preference API because its data is shared between multiple preferences, so it's freed here  */
static void free_col_info(GList *)
{
    fmt_data *cfmt;
    GList *list_head = list;
    while (list != NULL) {
        cfmt = (fmt_data *)list->data;
        g_free(cfmt->title);
        g_free(cfmt->custom_fields);
        g_free(cfmt);
        list = g_list_next(list);
    }
    g_list_free(list_head);
}