I would guess this is a copy-and-paste from the equivalent Alloc code.  But it might need some changes.