Fix a memory leak in the TCPConnector