Merge pull request #3930 from realjiangms/fix_shadow_thread_leak

server/shadow: close the thread handle so that it is detached because…
This commit is contained in:
akallabeth 2017-05-03 15:39:40 +02:00 committed by GitHub
commit 9645123a53

View File

@ -1778,6 +1778,12 @@ BOOL shadow_client_accepted(freerdp_listener* listener, freerdp_peer* peer)
freerdp_peer_context_free(peer);
return FALSE;
}
else
{
/* Close the thread handle to make it detached. */
CloseHandle(client->thread);
client->thread = NULL;
}
return TRUE;
}