diff --git a/Samples/cannyEdgeDetectorNPP/cannyEdgeDetectorNPP.cpp b/Samples/cannyEdgeDetectorNPP/cannyEdgeDetectorNPP.cpp index 496d53b3..97932ad3 100644 --- a/Samples/cannyEdgeDetectorNPP/cannyEdgeDetectorNPP.cpp +++ b/Samples/cannyEdgeDetectorNPP/cannyEdgeDetectorNPP.cpp @@ -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";