mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-04-27 10:54:32 +00:00
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:
parent
6203f1fd08
commit
ca5480c220
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user