[PATCH 14/25] network: replace VIR_ALLOC/REALLOC with g_new0/g_renew