18.5 Reference Counting
Simple rule: objects that allocate memory should clean it up
Not usually that simple. Consider sharing:
Two options:
Designate one as owner (not always possible)
Use
reference counting
prev
|
top
|
next