Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] leaking memory on shutdown

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Fri, 28 Jun 2013 07:51:11 +0200
Hi,

On Thu, Jun 27, 2013 at 08:22:27PM -0400, Evan Huus wrote:
> On Thu, Jun 27, 2013 at 5:25 PM, Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> wrote:
> > [Taking discussion out of the bug since it's not specifically related to
> > that bug.]
> >
> > But, more seriously, Guy pointed out a (long?) while ago that a certain OS
> > from a company he knows well has a way for applications to tell the OS
> > something like "I have nothing to save before exiting" and when that flag is
> > set and the user closes the app, the OS kills it with SIGKILL: it's faster
> > and simpler that way.  It's an interesting concept...  It makes me think
> > that we shouldn't really be spending time trying to fix leaks on shutdown.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4140#c16 ;-)

> The one benefit of fixing leaks on shutdown is that it makes it a
> million times easier to detect other (real) leaks because valgrind's
> output becomes useful. Right now any valgrind run you do with
> --leak-check=full is painfully difficult to analyze because of all the
> garbage (and dynamic hf arrays) that count as 'leaks'.

Have you tried creating suppression file?
http://wiki.wxwidgets.org/Valgrind_Suppression_File_Howto