aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 174814ae72..01425f105a 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -148,7 +148,9 @@ static GHashTable* heuristic_short_names = NULL;
static void
destroy_heuristic_dissector_entry(gpointer data, gpointer user_data _U_)
{
- g_free(((heur_dtbl_entry_t*)data)->list_name);
+ heur_dtbl_entry_t *hdtbl_entry = (heur_dtbl_entry_t *)data;
+ g_free(hdtbl_entry->list_name);
+ g_free(hdtbl_entry->short_name);
g_slice_free(heur_dtbl_entry_t, data);
}