mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 18:49:18 +08:00
Avoid double free in cannyEdgeDetectorNPP.cpp
The device memory for the image will be automatically freed when the image object itself is destroyed.
This commit is contained in:
parent
d06e135943
commit
1f571da4f5
|
@ -208,9 +208,6 @@ int main(int argc, char *argv[]) {
|
|||
saveImage(sResultFilename, oHostDst);
|
||||
std::cout << "Saved image: " << sResultFilename << std::endl;
|
||||
|
||||
nppiFree(oDeviceSrc.data());
|
||||
nppiFree(oDeviceDst.data());
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
} catch (npp::Exception &rException) {
|
||||
std::cerr << "Program error! The following exception occurred: \n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user