Return {error, enonmem} in OOM situations