Videocapture memory leak or feature?

export OPENCV_VIDEOIO_DEBUG=ON

and it will print out, what it does…