remove last use of allocate

just use malloc instead
Merge pull request #310 from minrk/allocate

remove last use of allocate