Remove a few if (p) av_freep(&p) forms