From b56373fe04ff2215d00c271cb8d599b4d49dc68d Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Mon, 30 Sep 2024 14:52:41 -0700 Subject: [PATCH] SWDEV-488316 - Fix memleaks in PrintfTests Change-Id: I53e392ac41023a108874d5c58633b53f7b7b0007 [ROCm/hip-tests commit: 5dcd005d33be61f739aea557d823d93b50a703f1] --- projects/hip-tests/catch/unit/printf/hipPrintfBasic.cc | 1 + projects/hip-tests/catch/unit/printf/hipPrintfManyWaves.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/projects/hip-tests/catch/unit/printf/hipPrintfBasic.cc b/projects/hip-tests/catch/unit/printf/hipPrintfBasic.cc index ae46254abe..cdaafa5d75 100644 --- a/projects/hip-tests/catch/unit/printf/hipPrintfBasic.cc +++ b/projects/hip-tests/catch/unit/printf/hipPrintfBasic.cc @@ -218,6 +218,7 @@ TEST_CASE("Unit_Printf_PrintfBasicTsts") { test_divergent0(retval, num_blocks, threads_per_block); test_divergent1(retval, num_blocks, threads_per_block); test_series(retval, num_blocks, threads_per_block); + HIP_CHECK(hipFree(retval_void)); } /** * End doxygen group PrintfTest. diff --git a/projects/hip-tests/catch/unit/printf/hipPrintfManyWaves.cc b/projects/hip-tests/catch/unit/printf/hipPrintfManyWaves.cc index c8821d9453..48378d2adb 100644 --- a/projects/hip-tests/catch/unit/printf/hipPrintfManyWaves.cc +++ b/projects/hip-tests/catch/unit/printf/hipPrintfManyWaves.cc @@ -272,6 +272,7 @@ TEST_CASE("Unit_Printf_PrintfManyWaves") { test_mixed2(retval, num_blocks, threads_per_block); test_mixed3(retval, num_blocks, threads_per_block); test_numbers(num_blocks, threads_per_block); + HIP_CHECK(hipFree(retval_void)); } /** * End doxygen group PrintfTest.