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 3805d7c5f2
commit f1b028b93e
7 changed files with 15 additions and 18 deletions
@@ -107,8 +107,8 @@ int main() {
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
delete[] A;
delete[] B;
hipCtxDestroy(context);
return 0;
}