Message ID | 20220128202858.96935-3-vbendel@redhat.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Paul Moore |
Headers | show |
Series | selinux: Fix and clean policydb->cond_list error paths | expand |
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index 1d0e5f326b62..8bc16ad3af9e 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -151,6 +151,8 @@ static void cond_list_destroy(struct policydb *p) for (i = 0; i < p->cond_list_len; i++) cond_node_destroy(&p->cond_list[i]); + p->cond_list_len = 0; + kfree(p->cond_list); p->cond_list = NULL; }