diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-12-27 19:16:15 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-12-29 02:31:26 +0100 |
commit | ce293647d5a63726c05260ca0e0f65a50e604ebb (patch) | |
tree | 68da5d82e3f0beb5805c6a7ea0afcbcddb311b1b /nxcomp/src/Proxy.cpp | |
parent | 17d045826ba98a55696cc56ebf6b56c811bf5392 (diff) | |
download | nx-libs-ce293647d5a63726c05260ca0e0f65a50e604ebb.tar.gz nx-libs-ce293647d5a63726c05260ca0e0f65a50e604ebb.tar.bz2 nx-libs-ce293647d5a63726c05260ca0e0f65a50e604ebb.zip |
ChannelEndPoint.cpp: fix possible memleak in getUnixPath()
Diffstat (limited to 'nxcomp/src/Proxy.cpp')
-rw-r--r-- | nxcomp/src/Proxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nxcomp/src/Proxy.cpp b/nxcomp/src/Proxy.cpp index 71ea090e6..7f72fae3f 100644 --- a/nxcomp/src/Proxy.cpp +++ b/nxcomp/src/Proxy.cpp @@ -6123,7 +6123,7 @@ int Proxy::handleNewSlaveConnection(int clientFd) int Proxy::handleNewGenericConnectionFromProxy(int channelId, T_channel_type type, ChannelEndPoint &endPoint, const char *label) { - char *unixPath, *host = NULL; + char *unixPath = NULL, *host = NULL; long port; if (endPoint.getUnixPath(&unixPath)) { |