Nested includes question

I am working with a template that includes another template at the end.
This second include will include the original template given an error
condition. I’m curious as to how this is handled memory-wise. Does it
overwrite the original template variables, et al., or does it put new
copies on the stack?