hone: return value checking on memory allocations.