aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
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 /file.c
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 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index e6b71a8509..346d73ea45 100644
--- a/file.c
+++ b/file.c
@@ -313,6 +313,8 @@ cf_close(capture_file *cf)
{
cf_reset_state(cf);
+ cleanup_dissection();
+
cf_callback_invoke(cf_cb_file_closed, cf);
}