Allocate memory from the pool and not heap.