Re: [PATCH] libdw: Fix dwarf_getscopes memory leak on error

2023-02-28 Thread Mark Wielaard
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.o

[PATCH] libdw: Fix dwarf_getscopes memory leak on error

2023-02-22 Thread Mark Wielaard
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 Signed-off-by: Mark Wielaard --- l