X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/7948e047ad0cdb129f10661905b2f3eecd5c85a0..df0e469fdcf0e0b3ef74bac6500e5751c40b4ec1:/cdsa/cdsa_utilities/cssmalloc.h diff --git a/cdsa/cdsa_utilities/cssmalloc.h b/cdsa/cdsa_utilities/cssmalloc.h index 5fd3d636..18bd5097 100644 --- a/cdsa/cdsa_utilities/cssmalloc.h +++ b/cdsa/cdsa_utilities/cssmalloc.h @@ -158,9 +158,13 @@ private: // // Global C++ allocation hooks to use CssmAllocators // -inline void *operator new (size_t size, CssmAllocator &allocator) throw(std::bad_alloc) +inline void *operator new (size_t size, CssmAllocator &allocator) throw (std::bad_alloc) { return allocator.malloc(size); } +inline void *operator new[] (size_t size, CssmAllocator &allocator) throw (std::bad_alloc) +{ return allocator.malloc(size); } + + // // You'd think that this is operator delete(const T *, CssmAllocator &), but you'd // be wrong. Specialized operator delete is only called during constructor cleanup.