Add cleanup code in module api samples
Ta zmiana jest zawarta w:
%! (template.HTML=
Rahul Garg)złożyło 2019-06-07 05:23:11 +05:30
1 rodzic
f8cc4e578d
złożenie
2dfc912094
3 plików zmienionych
+12
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -105,6 +105,10 @@ int main() {
|
||||
std::cout << "FAILED!\n";
|
||||
};
|
||||
|
||||
hipFree(Ad);
|
||||
hipFree(Bd);
|
||||
delete A;
|
||||
delete B;
|
||||
hipCtxDestroy(context);
|
||||
return 0;
|
||||
}
|
||||
@@ -97,6 +97,10 @@ int main() {
|
||||
std::cout << "FAILED!\n";
|
||||
};
|
||||
|
||||
hipFree(Ad);
|
||||
hipFree(Bd);
|
||||
delete A;
|
||||
delete B;
|
||||
hipCtxDestroy(context);
|
||||
return 0;
|
||||
}
|
||||
@@ -145,6 +145,10 @@ int main() {
|
||||
};
|
||||
}
|
||||
|
||||
hipFree(Ad);
|
||||
hipFree(Bd);
|
||||
delete A;
|
||||
delete B;
|
||||
hipCtxDestroy(context);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Zablokuj użytkownika