Wireshark-dev: Re: [Wireshark-dev] cleanup_dissection() called both on cf_close and cf_open()
From: Evan Huus <eapache@xxxxxxxxx>
Date: Sun, 24 Mar 2013 10:42:47 -0400
On Sun, Mar 24, 2013 at 10:37 AM, Anders Broman <a.broman@xxxxxxxxxxxx> wrote:
> Hi,
> Looking into address resolution I found that the hosts file is read multiple
> times partly
> because it's part of cleanup_dissection() which is called both on cf_open()
> and cf_close().
>
> Should cleanup_dissection() take an argument showing whether its a file open
> or file close
> operation and different measures taken at least when it comes to the
> host_name_lockup...?

Something like this. See also the XXX comment in
epan/wmem/wmem_scopes.c line 113, it is a workaround for this very
issue.

Evan