Commit 513aa23a authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

nxcomp: fix double free

Fixes ArcticaProject/nx-libs#569
parent 6d7536bd
...@@ -91,6 +91,8 @@ ChannelEndPoint::setSpec(const char *hostName, long port) { ...@@ -91,6 +91,8 @@ ChannelEndPoint::setSpec(const char *hostName, long port) {
int length; int length;
if (spec_) free(spec_); if (spec_) free(spec_);
spec_ = NULL;
isUnix_ = false; isUnix_ = false;
isTCP_ = false; isTCP_ = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment