libfreerdp-core: fix leak in listener

This commit is contained in:
Marc-André Moreau 2013-08-08 21:24:07 -04:00
parent 2847c8819e
commit d9a4b350af

View File

@ -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;