diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c index eab94087..e2e384d4 100644 --- a/checkpolicy/policy_define.c +++ b/checkpolicy/policy_define.c @@ -2733,6 +2733,7 @@ int define_roleattribute(void) free(id); return -1; } + free(id); while ((id = queue_remove(id_queue))) { if (!is_id_in_scope(SYM_ROLES, id)) {