]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_malloc.c
xnu-3789.70.16.tar.gz
[apple/xnu.git] / bsd / kern / kern_malloc.c
index b75284fbd792e99c2e91ab5dbf648392104b29d3..d33382ec3c550f5c3a7254bf182e61b4479e219d 100644 (file)
@@ -720,6 +720,9 @@ __MALLOC_ZONE(
                }
        }
 
+       if (elem && (flags & M_ZERO))
+               bzero(elem, size);
+
        return (elem);
 }