sla: add allocation failure check