ralloc: use rzalloc where it's necessary