[PATCH 4/9] remote: use g_autofree and remove unnecessary label