2 ms·
The usual case is the same as C; commonly a call to free, but if you’ve written your own allocator or something, you get to decide. The language doesn’t know an
by steveklabnik 6y ago
The usual case is the same as C; commonly a call to free, but if you’ve written your own allocator or something, you get to decide. The language doesn’t know anything about heap allocation, it’s a library thing.