avfilter: check a malloc in avfilter_link().