diff options
author | Evan Huus <eapache@gmail.com> | 2014-05-10 22:28:41 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-05-11 15:35:59 +0000 |
commit | 8e37416cd9aa978b14146039f190bb91ededb5e9 (patch) | |
tree | d2368781805bc4724b57316289bcda38459586a1 /epan/packet.c | |
parent | 2f023ea2ede78a0b32c25433f76a53df0685f54d (diff) | |
download | wireshark-8e37416cd9aa978b14146039f190bb91ededb5e9.tar.gz |
Fix leaking heuristic dissector names.
I believe we started taking copies of these names for lua purposes, but we need
to free them afterwards. This accounts for about half the leaked blocks (though
only a tiny fraction of the memory) valgrind reported on a recent run.
Change-Id: I74a656716cbf169905476f6c3e2cbcb0bd5ac0bc
Reviewed-on: https://code.wireshark.org/review/1580
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c index 8bed533b7e..5e378880d0 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -111,6 +111,7 @@ static GHashTable *heur_dissector_lists = NULL; static void destroy_heuristic_dissector_entry(gpointer data, gpointer user_data _U_) { + g_free(((heur_dtbl_entry_t*)data)->list_name); g_slice_free(heur_dtbl_entry_t, data); } |