aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-24 17:59:17 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-24 17:59:17 +0100
commitae73fedf8e168e6d617e923ea022e16064c8cc4e (patch)
tree1dea4cff2eafd2e77b4df37edda4b08dccc51169 /nxcomp
parent1e448d2f53fda1913425b90d6a538c375eb9774d (diff)
downloadnx-libs-ae73fedf8e168e6d617e923ea022e16064c8cc4e.tar.gz
nx-libs-ae73fedf8e168e6d617e923ea022e16064c8cc4e.tar.bz2
nx-libs-ae73fedf8e168e6d617e923ea022e16064c8cc4e.zip
nxcomp/src/Loop.cpp: fix small memory leak.
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/src/Loop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index a77954507..d05c22941 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -3183,6 +3183,8 @@ int SetupProxyConnection()
nxinfo << "Loop: connectSocket is "<< ( connectSocket.enabled() ? "enabled" : "disabled") << ". "
<< "The socket URI is '"<< ( socketUri != NULL ? socketUri : "<unset>") << "'.\n" << std::flush;
+ SAFE_FREE(socketUri);
+
listenSocket.getSpec(&socketUri);
nxinfo << "Loop: listenSocket is "<< ( listenSocket.enabled() ? "enabled" : "disabled") << ". "
<< "The socket URI is '"<< ( socketUri != NULL ? socketUri : "<unset>") << "'.\n" << std::flush;