From d53df176c17e882b07abfebca16b16450708af24 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Mar 2005 12:58:59 +0000 Subject: 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 --- file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'file.c') 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); } -- cgit v1.2.3