Fix use after free during cleanup of split dwarf information, fixes #141

This commit is contained in:
Jeremy 2024-07-02 21:56:35 -06:00
parent b93028921b
commit 611660de5b
No known key found for this signature in database
GPG Key ID: 3E11861CB34E158C

View File

@ -208,6 +208,8 @@ namespace libdwarf {
}
// subprograms_cache needs to be destroyed before dbg otherwise there will be another use after free
subprograms_cache.clear();
split_full_cu_resolvers.clear();
skeleton.reset();
if(aranges) {
dwarf_dealloc(dbg, aranges, DW_DLA_LIST);
}