SWDEV-1 - Some 'delete' clean up

Change-Id: I02564f0f0e349375bde1471e9f82df268703367b


[ROCm/clr commit: 73967c3b17]
This commit is contained in:
Jason Tang
2021-09-06 17:55:09 -04:00
committed by Jason Tang
szülő 3f5d248508
commit e94aec09bd
13 fájl változott, egészen pontosan 49 új sor hozzáadva és 123 régi sor törölve
@@ -1426,10 +1426,8 @@ bool Program::initClBinary() {
// ================================================================================================
void Program::releaseClBinary() {
if (clBinary_ != nullptr) {
delete clBinary_;
clBinary_ = nullptr;
}
delete clBinary_;
clBinary_ = nullptr;
}
// ================================================================================================
@@ -2171,9 +2169,7 @@ bool Program::initClBinary(const char* binaryIn, size_t size, amd::Os::FileDesc
if (!isElf(bin)) {
// Invalid binary.
if (decryptedBin != nullptr) {
delete[] decryptedBin;
}
delete[] decryptedBin;
DevLogError("Bin is not ELF \n");
return false;
}