Fixed AllocatorFactory leak