Take this example
Code:
function me takes nothing returns nothing
local integer i = 0
local location l = Location(344,766)
local location j = Location(654,1098)
if (i == 0) then
return
endif
call RemoveLocation(l)
call RemoveLocation(j)
endfunction
Would the two locations leak?