CID 1210843: useless delete.
This commit is contained in:
@@ -1041,10 +1041,8 @@ DwarfFile::_ParseTypesSection()
|
|||||||
unitHeaderOffset, unitContentOffset,
|
unitHeaderOffset, unitContentOffset,
|
||||||
unitLength + (unitLengthOffset - unitHeaderOffset),
|
unitLength + (unitLengthOffset - unitHeaderOffset),
|
||||||
abbrevOffset, typeOffset, addressSize, signature, dwarf64);
|
abbrevOffset, typeOffset, addressSize, signature, dwarf64);
|
||||||
if (unit == NULL) {
|
if (unit == NULL)
|
||||||
delete unit;
|
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
}
|
|
||||||
|
|
||||||
// parse the debug info for the unit
|
// parse the debug info for the unit
|
||||||
status_t error = _ParseTypeUnit(unit);
|
status_t error = _ParseTypeUnit(unit);
|
||||||
|
|||||||
Reference in New Issue
Block a user