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
This commit is contained in:
Evan Huus 2013-10-12 02:41:44 +00:00
parent 1f2043d69c
commit 6e3892e43a
1 changed files with 1 additions and 1 deletions

View File

@ -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