Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

another leak

rustdesk179b562472a1
diff --git a/src/platform/windows.cc b/src/platform/windows.cc
index 7ed76d2e4..9d284aea2 100644
--- a/src/platform/windows.cc
+++ b/src/platform/windows.cc
@@ -549,6 +549,7 @@ extern "C"
continue;
if (!stricmp(info.pWinStationName, "console"))
{
+ WTSFreeMemory(pInfos);
return info.SessionId;
}
if (!strnicmp(info.pWinStationName, rdp, nrdp))