mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 05:51:28 +03:00
fix leak fix
This commit is contained in:
@@ -549,8 +549,9 @@ extern "C"
|
|||||||
continue;
|
continue;
|
||||||
if (!stricmp(info.pWinStationName, "console"))
|
if (!stricmp(info.pWinStationName, "console"))
|
||||||
{
|
{
|
||||||
|
auto id = info.SessionId;
|
||||||
WTSFreeMemory(pInfos);
|
WTSFreeMemory(pInfos);
|
||||||
return info.SessionId;
|
return id;
|
||||||
}
|
}
|
||||||
if (!strnicmp(info.pWinStationName, rdp, nrdp))
|
if (!strnicmp(info.pWinStationName, rdp, nrdp))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user