Add cleanup code in module api samples

[ROCm/clr commit: 49ac54abde]
This commit is contained in:
Rahul Garg
2019-06-07 05:23:11 +05:30
parent 9b478cb227
commit ebd29537d0
3 changed files with 12 additions and 0 deletions
@@ -105,6 +105,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}