When returning, variables in the stack are now freed properly