From ae73fedf8e168e6d617e923ea022e16064c8cc4e Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Sun, 24 Dec 2017 17:59:17 +0100 Subject: nxcomp/src/Loop.cpp: fix small memory leak. --- nxcomp/src/Loop.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nxcomp') 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 : "") << "'.\n" << std::flush; + SAFE_FREE(socketUri); + listenSocket.getSpec(&socketUri); nxinfo << "Loop: listenSocket is "<< ( listenSocket.enabled() ? "enabled" : "disabled") << ". " << "The socket URI is '"<< ( socketUri != NULL ? socketUri : "") << "'.\n" << std::flush; -- cgit v1.2.3