This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Using dwfl_end to free dwfl
- From: Roland McGrath <roland at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 17 Sep 2009 12:28:43 -0700
- Subject: Re: Using dwfl_end to free dwfl
As you both point out, that is useful only for purposes of running
valgrind. addr2line itself has no leak since it just exits. But this
is a way to test for leaks in the library code (like libc_freeres).
For that, it is useful to put superfluous end/free into test programs,
but probably not desireable in a real program like addr2line.
> There is still some loss because of absense of ebl_closebackend for
__libdwfl_module_free does that.
Please cite this leak scenario you claim exists.
Thanks,
Roland