trying to contour memory leak in opencvv