tap: destroy list on cleanup.
Change-Id: I24ab3d07721d338edf910b9fa8864306cbfe9dfa Reviewed-on: https://code.wireshark.org/review/20021 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
19ba947d9a
commit
2e0ea97a81
|
@ -744,6 +744,12 @@ union_of_tap_listener_flags(void)
|
|||
return flags;
|
||||
}
|
||||
|
||||
static void
|
||||
tap_plugin_destroy(gpointer p)
|
||||
{
|
||||
g_free(p);
|
||||
}
|
||||
|
||||
void tap_cleanup(void)
|
||||
{
|
||||
volatile tap_listener_t *elem_lq;
|
||||
|
@ -763,6 +769,8 @@ void tap_cleanup(void)
|
|||
g_free((char*)elem_dl->name);
|
||||
g_free((gpointer)elem_dl);
|
||||
}
|
||||
|
||||
g_slist_free_full(tap_plugins, tap_plugin_destroy);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue