remove last use of allocate

just use malloc instead