alloc: didn't mean to remove the proper error check