Instead of using the NEW_C_HEAP_ARRAY macros, we could start to use the ArrayAllocator classes.
However, unlike FREE_C_HEAP_ARRAY MallocArrayAllocator::free requires the length to be passed as an argument. This makes MallocArrayAllocator a bit more awkward to use.
However, unlike FREE_C_HEAP_ARRAY MallocArrayAllocator::free requires the length to be passed as an argument. This makes MallocArrayAllocator a bit more awkward to use.