Fix memory leak in TLS enabled socket connection.