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

Change-Id: Ib44551b3f60cd90fa7158e4ed016ef5549a34ef7
This commit is contained in:
Jaydeep Patel
2024-08-29 06:21:46 +00:00
committato da Jaydeepkumar Patel
parent dac779c834
commit b89a7c6201
9 ha cambiato i file con 43 aggiunte e 0 eliminazioni
@@ -86,5 +86,9 @@ int main() {
} else {
std::cout << "success\n";
}
free(hInput);
free(hOutput);
checkHipErrors(hipFree(dInput));
checkHipErrors(hipFree(dOutput));
return 0;
}