Update allocator.cpp