[X2Go-Commits] [nx-libs] 04/06: nxcomp/src/Loop.cpp: fix small memory leak.

git-admin at x2go.org git-admin at x2go.org
Sun Dec 24 18:43:47 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit ae73fedf8e168e6d617e923ea022e16064c8cc4e
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Dec 24 17:59:17 2017 +0100

    nxcomp/src/Loop.cpp: fix small memory leak.
---
 nxcomp/src/Loop.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index a779545..d05c229 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;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list