SWDEV-431399 - fix first set of memory leaks in tests

Change-Id: I73254b2f17df69726110070ebb457df14d647f27
Bu işleme şunda yer alıyor:
Jatin Chaudhary authored and Rakesh Roy committed 2023-11-17 06:23:49 -05:00
1 ebeveyn d26d5cf992
işleme 96cf008176
1 file changed
+3
+3
Dosyayı Görüntüle
@@ -60,6 +60,8 @@ TEST_CASE("Unit_RTC_LinkerAPI") {
std::vector<char> code(codesize, '\0');
HIPRTC_CHECK(hiprtcGetBitcode(program, &code[0]));
HIPRTC_CHECK(hiprtcDestroyProgram(&program));
const char* isaopts[] = {"-mllvm", "-inline-threshold=1", "-mllvm", "-inlinehint-threshold=1"};
std::vector<hiprtcJIT_option> jit_options = {HIPRTC_JIT_IR_TO_ISA_OPT_EXT,
HIPRTC_JIT_IR_TO_ISA_OPT_COUNT_EXT};
@@ -119,6 +121,7 @@ TEST_CASE("Unit_RTC_LinkerAPI") {
HIP_CHECK(hipFree(dY));
HIP_CHECK(hipFree(dOut));
HIPRTC_CHECK(hiprtcLinkDestroy(linkstate));
HIP_CHECK(hipModuleUnload(module));
for (size_t i = 0; i < n; ++i) {