Let OpenCV manage output memory.