RosettaCodeData/Task/Memory-allocation/Smalltalk/memory-allocation-2.st

6 lines
148 B
Smalltalk

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