Add cleanup code in module api samples

Tá an tiomantas seo le fáil i:
Rahul Garg
2019-06-07 05:23:11 +05:30
tuismitheoir 9ddb0291fd
tiomantas f2b3526503
D'athraigh 3 comhad le 12 breiseanna agus 0 scriosta
+4
Féach ar an gComhad
@@ -105,6 +105,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}