Local reference is it clear on exit?

Say I have a function which takes in a reference… on exit of that function is it set to null automatically or do i have to declare it null myself?