aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-11-27 23:30:50 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-09 13:15:35 +0100
commit513aa23a714d2ccba388bca41262610c571dcf43 (patch)
tree99e9fc181c0b57bdccb305fa6a8c757198e28294
parent6d7536bd4f5cad9a779c186bd2649b34ec71b367 (diff)
downloadnx-libs-513aa23a714d2ccba388bca41262610c571dcf43.tar.gz
nx-libs-513aa23a714d2ccba388bca41262610c571dcf43.tar.bz2
nx-libs-513aa23a714d2ccba388bca41262610c571dcf43.zip
nxcomp: fix double free
Fixes ArcticaProject/nx-libs#569
-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;