<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/kCFAllocatorMallocZone",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@kCFAllocatorMallocZone"
  },
  "title" : "kCFAllocatorMallocZone"
}
-->

# kCFAllocatorMallocZone

This allocator explicitly uses the default malloc zone, returned by `malloc_default_zone()`.

```
let kCFAllocatorMallocZone: CFAllocator!
```

## Discussion

You should only use this when an object is safe to be allocated in non-scanned memory.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)