[PATCH v2 1/3] networkcommon_conf: Use g_autofree where possible