Fix global leak of "location"