[PATCH 6/9] security: use g_autofree and remove unnecessary label