summaryrefslogtreecommitdiff
path: root/extcap/ciscodump.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/ciscodump.c')
-rw-r--r--extcap/ciscodump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c
index dbd93afd98..fda78d86de 100644
--- a/extcap/ciscodump.c
+++ b/extcap/ciscodump.c
@@ -113,7 +113,12 @@ static char* local_interfaces_to_filter(const unsigned int remote_port)
{
GSList* interfaces = local_interfaces_to_list();
char* filter = interfaces_list_to_filter(interfaces, remote_port);
+#if GLIB_CHECK_VERSION(2, 28, 0)
g_slist_free_full(interfaces, g_free);
+#else
+ g_slist_foreach(interfaces, (GFunc)g_free, NULL);
+ g_slist_free(interfaces);
+#endif
return filter;
}