From 513aa23a714d2ccba388bca41262610c571dcf43 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 27 Nov 2017 23:30:50 +0100 Subject: nxcomp: fix double free Fixes ArcticaProject/nx-libs#569 --- nxcomp/src/ChannelEndPoint.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3