Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-rpc.c: where are hash table keys freed?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Mike Frisch" <mfrisch@xxxxxxxxxx>
Date: Thu, 6 Oct 2005 15:10:27 -0400 (EDT)
rpc_calls is a glib hash table allocated using g_hash_table_new().  As per
the documentation for glib, the keys and/or values should be freed prior
to calling g_hash_table_destroy().

(ref:
http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-Tables.html#g-hash-table-new)

Does this mean that memory allocated for the keys and values in rpc_calls
is leaked when/if the table is destroyed?  This seems too obvious as a
memory leak, but I cannot see anywhere they're freed.