Fix memory leak in defining window.location

https://github.com/joyent/node/issues/7454