I see now, I wasn't aware of this difference in memory management semantics.