aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-03-23 12:58:59 +0000
committerGuy Harris <guy@alum.mit.edu>2005-03-23 12:58:59 +0000
commitd53df176c17e882b07abfebca16b16450708af24 (patch)
tree6f58dd43228f3f85e5d1d4fb3d1445bd36c7e0df /epan/packet.h
parent68e9137eb152fb6dafbf8cd2f0fa6e481580bed8 (diff)
Add a "cleanup_dissection()" routine, intended to free up data
structures allocated by a dissection. Currently, it's the same as "init_dissection()", but they should be split with "init_dissection()" allocating the initial data structures and "cleanup_dissection()" freeing them and *not* reallocating the initial data structures. Use "cleanup_dissection()" in "cf_close()" to make it easier to find leaks. svn path=/trunk/; revision=13881
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 57ebb3107a..cdc2f8ff9e 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -322,6 +322,9 @@ extern void register_init_routine(void (*func)(void));
/* Initialize all data structures used for dissection. */
extern void init_dissection(void);
+/* Free data structures allocated for dissection. */
+extern void cleanup_dissection(void);
+
/* Allow protocols to register a "cleanup" routine to be
* run after the initial sequential run through the packets.
* Note that the file can still be open after this; this is not