Fix few memory leaks in HIP (#1969)

This commit is contained in:
Sarbojit2019
2020-03-27 14:08:30 +05:30
committed by GitHub
parent 2449e0de8b
commit 4a68ab5a8c
7 changed files with 15 additions and 18 deletions
@@ -80,8 +80,8 @@ int main() {
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
delete[] A;
delete[] B;
hipCtxDestroy(context);
return 0;
}