From 6e3892e43a18a18078814c04fc8469f9295fadc8 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sat, 12 Oct 2013 02:41:44 +0000 Subject: [PATCH] Free the actual struct, not the typedef thereof, because the typedef is actually a typedef of a *pointer* to the struct, not the struct itself, which are different sizes. This doesn't show up under valgrind because the length isn't checked in that case, everything gets subsumed in valgrind's malloc/free hooks. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9264 svn path=/trunk/; revision=52560 --- epan/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/packet.c b/epan/packet.c index 838b60804a..e24158204a 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -131,7 +131,7 @@ destroy_dissector_table(void *data) g_hash_table_destroy(table->hash_table); g_slist_free(table->dissector_handles); - g_slice_free(dissector_table_t, data); + g_slice_free(struct dissector_table, data); } void