diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-23 12:58:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-23 12:58:59 +0000 |
commit | d53df176c17e882b07abfebca16b16450708af24 (patch) | |
tree | 6f58dd43228f3f85e5d1d4fb3d1445bd36c7e0df /file.c | |
parent | 68e9137eb152fb6dafbf8cd2f0fa6e481580bed8 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -313,6 +313,8 @@ cf_close(capture_file *cf) { cf_reset_state(cf); + cleanup_dissection(); + cf_callback_invoke(cf_cb_file_closed, cf); } |