From 19ab862ea38cb51f767c63bc6abf8020c06cdfcf Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Fri, 4 Oct 2024 11:31:15 +0000 Subject: [PATCH] SWDEV-489384 - SWDEV-489388 - Fix memory leaks in hipStreamGetDevice catch tests Change-Id: I7e96edbdbb8cde8b81c471bd0572f95df40d3530 [ROCm/hip-tests commit: 01bfe612937673320d3bd866c396434092870c0e] --- projects/hip-tests/catch/unit/stream/hipStreamGetDevice.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip-tests/catch/unit/stream/hipStreamGetDevice.cc b/projects/hip-tests/catch/unit/stream/hipStreamGetDevice.cc index 247e9b19ba..fbe8324270 100644 --- a/projects/hip-tests/catch/unit/stream/hipStreamGetDevice.cc +++ b/projects/hip-tests/catch/unit/stream/hipStreamGetDevice.cc @@ -115,6 +115,7 @@ TEST_CASE("Unit_hipStreamGetDevice_Usecase") { HIP_CHECK(hipDeviceGet(&device_from_ordinal, i)); REQUIRE(device_from_stream == device_from_ordinal); + HIP_CHECK(hipStreamDestroy(stream)); } } } @@ -203,6 +204,7 @@ TEST_CASE("Unit_hipStreamGetDevice_SetDiffDevice") { REQUIRE(device_from_stream == i); } } + HIP_CHECK(hipStreamDestroy(stream)); } }