Add cleanup code in module api samples

This commit is contained in:
Rahul Garg
2019-06-07 05:23:11 +05:30
parent 9ddb0291fd
commit f2b3526503
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -97,6 +97,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}