truemotion2: Use av_freep properly in an error path