diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-23 12:58:59 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-23 12:58:59 +0000 |
commit | 21adfea11b025c3f5c44268b6eb549f30129961d (patch) | |
tree | 6f58dd43228f3f85e5d1d4fb3d1445bd36c7e0df /file.c | |
parent | 07d9eda5e0bf15e200315a2ef42aca501ead3d6f (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13881 f5534014-38df-0310-8fa8-9805f1628bb7
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); } |