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
vanhempi 9b478cb227
commit ebd29537d0
3 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
@@ -97,6 +97,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}