Fix naming mismatch of allocator functions.