Fix rare crash when looking for a function name

If we fall back to DWARF processing trying to find a function name we deallocated the wrong object because of a copy/paste error. This part of the code was hit only very rarely, which made this bug undetected for a long time.
This commit is contained in:
Pedro Navarro 2020-08-05 23:39:39 -07:00 committed by GitHub
parent 6203f1fd08
commit ca5480c220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2831,7 +2831,7 @@ private:
trace.object_function = demangler.demangle(linkage);
dwarf_dealloc(dwarf, linkage, DW_DLA_STRING);
}
dwarf_dealloc(dwarf, name, DW_DLA_ATTR);
dwarf_dealloc(dwarf, attr_mem, DW_DLA_ATTR);
}
break;