SWDEV-481860 - Match malloc/hipMalloc calls with free/hipFree calls in all samples.

Change-Id: Ib44551b3f60cd90fa7158e4ed016ef5549a34ef7


[ROCm/hip-tests commit: b89a7c6201]
This commit is contained in:
Jaydeep Patel
2024-08-29 06:21:46 +00:00
committed by Jaydeepkumar Patel
parent f06e679b18
commit 370b76407d
9 changed files with 43 additions and 0 deletions
@@ -92,5 +92,11 @@ int main(int argc, char* argv[]) {
CHECK(hipErrorUnknown);
}
}
CHECK(hipFree(A_d));
CHECK(hipFree(C_d));
free(A_h);
free(C_h);
printf("PASSED!\n");
}