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.