Fixes memory leak when ConnectSocket returns with an error in connect().
Fixes memory leak when ConnectSocket returns with an error in connect().

bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn