fix: cleanup memory leaks in ocloc

- enable memory leaks detection in ocloc tests

Related-To: NEO-7467

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-04-18 11:17:54 +00:00
committed by Compute-Runtime-Automation
parent bab299ee78
commit 97a8f15fbd
8 changed files with 78 additions and 32 deletions

View File

@@ -339,6 +339,12 @@ int OfflineCompiler::buildSourceCode() {
return retVal;
}
}
delete[] irBinary;
delete[] genBinary;
irBinary = nullptr;
irBinarySize = 0;
genBinary = nullptr;
genBinarySize = 0;
}
UNRECOVERABLE_IF(!igcFacade->isInitialized());