[PATCH 10/25] network: convert local pointers to g_auto*