function temp takes nothing returns nothing
local location l
if (boolean expression) then
set l = something
// do stuff with l
call RemoveLocation(l)
set l = null
endif
// we don't null l here because it won't be equal to anything, and thus it won't leak
endfunction