3 ms·
The article states that malloc only fails when you run out of virtual address space, which is basically never going to happen if you're on a 64 bit architecture
by thedjinn 10y ago
The article states that malloc only fails when you run out of virtual address space, which is basically never going to happen if you're on a 64 bit architecture. So you can go for good practice and check all your mallocs for failure, but if the failure never happens why bother?