Fix use after free

This commit is contained in:
Jeremy 2023-09-17 17:18:19 -04:00
parent c36b47b5bf
commit cc0876dc94
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -479,10 +479,10 @@ namespace libdwarf {
CPPTRACE_FORCE_NO_INLINE
~dwarf_resolver() {
dwarf_finish(dbg);
for(auto& entry : line_contexts) {
dwarf_srclines_dealloc_b(entry.second.ctx);
}
dwarf_finish(dbg);
}
// walk die list, callback is called on each die and should return true to