avfilter/vf_maskfun: fix memleak