# include "config.h"
#endif
-#include <stdio.h>
-
-#include <string.h>
#include <glib.h>
#include "packet.h"
#include "circuit.h"
void
circuit_cleanup(void)
{
+ /*
+ * Free up any space allocated for the circuit hashtable.
+ *
+ * We can free the hash as the structures pointed to in the
+ * hash are in "seasonal" memory which is freed separately.
+ * Note: circuit_cleanup() must be called only when
+ * seasonal memory is also freed.
+ */
+
if (circuit_hashtable != NULL)
g_hash_table_destroy(circuit_hashtable);
void
circuit_init(void)
{
- /*
- * Free up any space allocated for circuit protocol data
- * areas.
- *
- * We can free the space, as the structures it contains are
- * pointed to by circuit data structures that were freed
- * above.
- */
-
circuit_hashtable = g_hash_table_new(circuit_hash, circuit_match);
/*
*/
gboolean
try_circuit_dissector(circuit_type ctype, guint32 circuit_id, guint32 frame,
- tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+ tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
circuit_t *circuit;