checkpolicy: add a missing free(id) in define_roleattribute()

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-01-21 15:26:12 +01:00 committed by James Carter
parent 0a0d055283
commit 42658e729f

View File

@ -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)) {