commit | a5720e571939ff452967cf9cdb1b7d8665708739 | [log] [tgz] |
---|---|---|
author | Jan Grulich <jgrulich@redhat.com> | Tue Nov 20 10:44:39 2018 +0100 |
committer | Jan Grulich <jgrulich@redhat.com> | Tue Nov 20 10:45:20 2018 +0100 |
tree | e61595aea20bf880ac0b52911a2813e110028968 | |
parent | 46f718f6472f87fa26633346a4b343a51b0c7f7a [diff] [blame] |
Fix memory leaks
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index f076565..a9d4dfe 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx
@@ -470,9 +470,9 @@ int localPort = findFreeTcpPort(); int remotePort; - gatewayHost = strDup(via.getValueStr()); if (interpretViaParam(remoteHost, &remotePort, localPort) != 0) return 1; + gatewayHost = (const char*)via; createTunnel(gatewayHost, remoteHost, remotePort, localPort); return 0;