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