Newbie question: memory leaks by shadowing?

The point about "does not alter or destroy the value" is referring only to the immediate act of shadowing. You can't access the shadowed variable by name anymore, but it will still be destroyed at the end of its scope as normal.