From d9a4b350afd5d8d75de9243972f33bd38f5ce28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Thu, 8 Aug 2013 21:24:07 -0400 Subject: [PATCH] libfreerdp-core: fix leak in listener --- libfreerdp/core/listener.c | 1 + 1 file changed, 1 insertion(+) 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;