joyent/node — pull request #2412 by stash (2011-12-23 22:19:23+00:00)
Title: Avoid minor array leak in Agent

A comment "// don't leak" was present, but in dead code, so this may be fixing a regression.

My app connects to many different hosts (thousands) over the process lifetime. This bug would clearly leak keys and arrays in `.sockets` and `.requests` over the lifetime of the process.

Please consider cherry-picking to v0.6.