3 ms·
Right. My question was off base there. Should have focused on memory ownership insofar as where the memory goes when deallocated.
by scrubs 5y ago
Right. My question was off base there. Should have focused on memory ownership insofar as where the memory goes when deallocated.
- steveklabnik 5y agoThe 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.