aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/ChannelEndPoint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp
index 1504046c1..8cc0c1d41 100644
--- a/nxcomp/src/ChannelEndPoint.cpp
+++ b/nxcomp/src/ChannelEndPoint.cpp
@@ -58,7 +58,7 @@ ChannelEndPoint::~ChannelEndPoint()
void
ChannelEndPoint::setSpec(const char *spec) {
- if (spec_) free(spec_);
+ free(spec_);
if (spec && strlen(spec))
{
@@ -90,7 +90,7 @@ void
ChannelEndPoint::setSpec(const char *hostName, long port) {
int length;
- if (spec_) free(spec_);
+ free(spec_);
spec_ = NULL;
isUnix_ = false;
@@ -162,7 +162,7 @@ ChannelEndPoint::setDefaultTCPInterface(int publicInterface) {
void
ChannelEndPoint::setDefaultUnixPath(char *path) {
- if (defaultUnixPath_) free(defaultUnixPath_);
+ free(defaultUnixPath_);
if (path && strlen(path))
defaultUnixPath_ = strdup(path);