[PATCH 2/9] interface: use g_autofree and remove unnecessary label