diff options
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r-- | capture-pcap-util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c index 1c7815fa4e..1850b10acd 100644 --- a/capture-pcap-util.c +++ b/capture-pcap-util.c @@ -448,10 +448,11 @@ free_linktype_cb(gpointer data, gpointer user_data _U_) } void -free_pcap_linktype_list(GList *linktype_list) +free_if_capabilities(if_capabilities_t *caps) { - g_list_foreach(linktype_list, free_linktype_cb, NULL); - g_list_free(linktype_list); + g_list_foreach(caps->data_link_types, free_linktype_cb, NULL); + g_list_free(caps->data_link_types); + g_free(caps); } const char * |