avfilter/vf_libopencv: fix resource leak in read_shape_frame_filter