Files
teleport/lib/proxy/peer
rob-picard-teleport 2752a106f0 Fix a resource leak in the proxy-node connection (#64337)
* Fix a resource leak in the proxy-node connection

After Dial succeeds to the node, there are a couple of error cases
where we return without closing the connection.

The happy path closes the connection in utils.ProxyConn.

defer is the simplest way to ensure it's closed with any error cases
and the extra close in the happy path does not have a negative effect

* go fmt
2026-03-06 17:07:42 +00:00
..