diff --git a/libfreerdp/core/listener.c b/libfreerdp/core/listener.c index b67703b1d..fb49bf3d4 100644 --- a/libfreerdp/core/listener.c +++ b/libfreerdp/core/listener.c @@ -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;