CID 1210843: useless delete.

This commit is contained in:
Adrien Destugues
2014-05-15 22:57:33 +02:00
parent 0674a9ca80
commit 4c901476bf
+1 -3
View File
@@ -1041,10 +1041,8 @@ DwarfFile::_ParseTypesSection()
unitHeaderOffset, unitContentOffset,
unitLength + (unitLengthOffset - unitHeaderOffset),
abbrevOffset, typeOffset, addressSize, signature, dwarf64);
if (unit == NULL) {
delete unit;
if (unit == NULL)
return B_NO_MEMORY;
}
// parse the debug info for the unit
status_t error = _ParseTypeUnit(unit);