Allocate memory from the process pool
Remove unused function