SWDEV-487649 - SWDEV-487639 - SWDEV-487636 - Fix memory leaks in catch tests

Change-Id: I7943ecffec6d470789aabde07e6c52d6b871cc13


[ROCm/hip-tests commit: 9cf127697e]
Bu işleme şunda yer alıyor:
Satyanvesh Dittakavi
2024-10-01 15:59:05 +00:00
ebeveyn ffc418c7fd
işleme 30d579a81b
3 değiştirilmiş dosya ile 19 ekleme ve 3 silme
+8
Dosyayı Görüntüle
@@ -104,6 +104,8 @@ TEST_CASE("Unit_hipDeviceSynchronize_Positive_Nullstream") {
b_context.unblock_stream();
HIP_CHECK(hipDeviceSynchronize());
REQUIRE(1 << 30 == A_h[0] - 1);
HIP_CHECK(hipHostFree(A_h));
HIP_CHECK(hipFree(A_d));
}
/**
@@ -157,8 +159,14 @@ TEST_CASE("Unit_hipDeviceSynchronize_Functional") {
}
HIP_CHECK(hipDeviceSynchronize());
REQUIRE(NUM_ITERS == A[NUM_STREAMS - 1][0] - 1);
for (int i = 0; i < NUM_STREAMS; i++) {
HIP_CHECK(hipHostFree(A[i]));
HIP_CHECK(hipFree(Ad[i]));
HIP_CHECK(hipStreamDestroy(stream[i]));
}
}
/**
* End doxygen group DeviceTest.
* @}