Add cleanup code in module api samples

[ROCm/hip-tests commit: 2dfc912094]
This commit is contained in:
Rahul Garg
2019-06-07 05:23:11 +05:30
rodzic b553cf6dbf
commit 3940681053
3 zmienionych plików z 12 dodań i 0 usunięć
@@ -97,6 +97,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}