crypto: Use av_freep instead of av_free