Add cleanup code in module api samples

[ROCm/hip-tests commit: 2dfc912094]
This commit is contained in:
Rahul Garg
2019-06-07 05:23:11 +05:30
parent b553cf6dbf
commit 3940681053
3 ha cambiato i file con 12 aggiunte e 0 eliminazioni
@@ -145,6 +145,10 @@ int main() {
};
}
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}