typo
no effective changes
check alloc() return value; lift rlimit to hard