l2cap_connect failure leaks socket handles
Status: Alpha
Brought to you by:
bja
When attempting to reconnect to a wiimote, failure to connect() in l2cap_connect does not close() the socket.
A long-running application which has a fixed wiimote bound to it will leak one socket-handle each time it attempts to reconnect.
A less frequent leak will occur if a device disappears between discover() and connect().
rob AT iamaspammer.curates-egg.org
Remove the obvious part of the domain name for a valid email address.
I added the calls to close() in 2cap_connect to close the socket before returning. Thank you very much!