I suggest you use either `new` or `cv::fastMalloc()`.
Also it may be good to use `cv::Ptr<>` for auto-free.