Removed dynamic allocation from HandleAlloc.