fix leak fix

This commit is contained in:
rustdesk 2024-09-13 15:42:51 +08:00
parent 179b562472
commit 2e7bd26e4c

View File

@ -549,8 +549,9 @@ extern "C"
continue;
if (!stricmp(info.pWinStationName, "console"))
{
auto id = info.SessionId;
WTSFreeMemory(pInfos);
return info.SessionId;
return id;
}
if (!strnicmp(info.pWinStationName, rdp, nrdp))
{