[PATCH 7/9] util: use g_autofree and remove unnecessary label