Fix use after free during cleanup of split dwarf information, fixes #141
This commit is contained in:
parent
b93028921b
commit
611660de5b
@ -208,6 +208,8 @@ namespace libdwarf {
|
|||||||
}
|
}
|
||||||
// subprograms_cache needs to be destroyed before dbg otherwise there will be another use after free
|
// subprograms_cache needs to be destroyed before dbg otherwise there will be another use after free
|
||||||
subprograms_cache.clear();
|
subprograms_cache.clear();
|
||||||
|
split_full_cu_resolvers.clear();
|
||||||
|
skeleton.reset();
|
||||||
if(aranges) {
|
if(aranges) {
|
||||||
dwarf_dealloc(dbg, aranges, DW_DLA_LIST);
|
dwarf_dealloc(dbg, aranges, DW_DLA_LIST);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user