summaryrefslogtreecommitdiff
path: root/extcap.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-10-13 12:08:43 -0400
committerEvan Huus <eapache@gmail.com>2014-10-13 16:09:47 +0000
commit8fb74b4a6847990aab841d3eaf43cd2d9669cd3b (patch)
tree2b29a11edf39337a435f5ebc619a8ae50cabcc81 /extcap.c
parent4f37f554f1de15c25e4e11cad7ad1bca55bfa897 (diff)
downloadwireshark-8fb74b4a6847990aab841d3eaf43cd2d9669cd3b.tar.gz
extcap: remove use of g_list_free_full
It requires a newer glib than we support Change-Id: Id8f14d4188a9ba55e0a5196bb877e2fe6a0c8d3f Reviewed-on: https://code.wireshark.org/review/4652 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/extcap.c b/extcap.c
index 403e5013fc..82ae1fe8ca 100644
--- a/extcap.c
+++ b/extcap.c
@@ -342,6 +342,11 @@ extcap_interface_list(char **err_str) {
return ret;
}
+static void g_free_1(gpointer data, gpointer user_data _U_)
+{
+ g_free(data);
+}
+
static void extcap_free_if_configuration(GList *list)
{
GList *elem;
@@ -355,7 +360,8 @@ static void extcap_free_if_configuration(GList *list)
}
arg_list = g_list_first((GList *)elem->data);
- g_list_free_full(arg_list, g_free);
+ g_list_foreach(arg_list, g_free_1, NULL);
+ g_list_free(arg_list);
}
g_list_free(list);
}