aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nxcomp/src/ChannelEndPoint.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp
index 4fdf0fad4..1504046c1 100644
--- a/nxcomp/src/ChannelEndPoint.cpp
+++ b/nxcomp/src/ChannelEndPoint.cpp
@@ -91,6 +91,8 @@ ChannelEndPoint::setSpec(const char *hostName, long port) {
int length;
if (spec_) free(spec_);
+ spec_ = NULL;
+
isUnix_ = false;
isTCP_ = false;