X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/f427ee49d309d8fc33ebf3042c3a775f2f530ded..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/bsd/kern/kern_authorization.c?ds=sidebyside diff --git a/bsd/kern/kern_authorization.c b/bsd/kern/kern_authorization.c index e1000e3d4..0181ee93d 100644 --- a/bsd/kern/kern_authorization.c +++ b/bsd/kern/kern_authorization.c @@ -1217,7 +1217,11 @@ kauth_acl_alloc(int count) void kauth_acl_free(kauth_acl_t aclp) { - FREE(aclp, M_KAUTH); + /* + * It's possible this may have have been allocated in a kext using + * MALLOC. Using KHEAP_ANY will allow us to free it here. + */ + kheap_free_addr(KHEAP_ANY, aclp); }