|
|
|
|
|
by MaulingMonkey
3473 days ago
|
|
In practice, many programs ignore the fact that malloc can return NULL. As do some OSes and their implementations of malloc, if they support/enable/require overcommit. These are perhaps operating under "the illusion of infinite memory" (in the GC sense): free, in this context, is simply a way of marking data as invalid and no longer to be referenced - a method of poisoning data for debug purposes. But of course, I've had malloc return NULL - very finite. |
|