libfreerdp-core: fix leak in listener
This commit is contained in:
parent
2847c8819e
commit
d9a4b350af
@ -234,6 +234,7 @@ static void freerdp_listener_close(freerdp_listener* instance)
|
||||
for (i = 0; i < listener->num_sockfds; i++)
|
||||
{
|
||||
close(listener->sockfds[i]);
|
||||
CloseHandle(listener->events[i]);
|
||||
}
|
||||
|
||||
listener->num_sockfds = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user