It obvious does, with reference counting. Otherwise programs would just balloon in memory.