RosettaCodeData/Task/Memory-allocation/Smalltalk/memory-allocation-2.st
2023-07-01 13:44:08 -04:00

5 lines
148 B
Smalltalk

handle := ExternalBytes unprotectedNew:size
...
handle := nil "or no longer reachable"
...
memory will be freed by the garbage collector eventually