/* Callback used to free an instance of airpcap_if_info_t  */
static void free_airpcap_if_cb(gpointer data, gpointer user_data _U_)
/* Callback used to free an instance of airpcap_if_info_t  */
static void free_airpcap_if_cb(gpointer data, gpointer user_data _U_)
{
    airpcap_if_info_t *if_info = (airpcap_if_info_t *)data;
    if (NULL == if_info)
        return;
    if (if_info->name != NULL)
        g_free(if_info->name);
    if (if_info->description != NULL)
        g_free(if_info->description);
    if (if_info->keysCollection != NULL)
    {
        g_free(if_info->keysCollection);
        if_info->keysCollection = NULL;
    }
    if (if_info->ip_addr != NULL)
        g_slist_free(if_info->ip_addr);
    g_free(if_info);
}