swresample: replace 2 av_free() by av_freep()