Add cleanup code in module api samples

This commit is contained in:
Rahul Garg
2019-06-07 05:23:11 +05:30
parent f8cc4e578d
commit 2dfc912094
3 changed files with 12 additions and 0 deletions
@@ -145,6 +145,10 @@ int main() {
};
}
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}