Skip to contentSkip to conversation

checkpolicy - constraint destroy

PATCH New Joshua Brindle 1 participant 1 message Oct 4, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpolicy - constraint destroy

On the constraint error path the constraint list cleanup was destroying the wrong node.

policy_parse.y +1 -1
diff -pur -x .svn checkpolicy/policy_parse.y checkpolicy/policy_parse.y
@@ -2861,7 +2864,7 @@ oom:
 	while (e) {
 		l = e;
 		e = e->next;
-		constraint_expr_destroy(e);
+		constraint_expr_destroy(l);
 	}
 	return NULL;
 }