[PATCH] libdw: Fix dwarf_getscopes memory leak on error
Mark Wielaard
mark@klomp.org
Tue Feb 28 11:36:21 GMT 2023
Hi,
On Wed, 2023-02-22 at 23:39 +0100, Mark Wielaard wrote:
> When there is an error in dwarf_getscopes after the initial scopes
> have been allocated, e.g. when looking for the inlined scopes, then
> the scopes would leak. Fix this by explicitly free the scopes on error.
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=29434
I pushed this.
Cheers,
Mark
More information about the Elfutils-devel
mailing list