Add cleanup code in module api samples

[ROCm/hip commit: f2b3526503]
Tento commit je obsažen v:
Rahul Garg
2019-06-07 05:23:11 +05:30
rodič 43d829ec35
revize 545b6e60ee
3 změnil soubory, kde provedl 12 přidání a 0 odebrání
+4
Zobrazit soubor
@@ -105,6 +105,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}
+4
Zobrazit soubor
@@ -97,6 +97,10 @@ int main() {
std::cout << "FAILED!\n";
};
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}
+4
Zobrazit soubor
@@ -145,6 +145,10 @@ int main() {
};
}
hipFree(Ad);
hipFree(Bd);
delete A;
delete B;
hipCtxDestroy(context);
return 0;
}