diff options
author | winterrace <42121686+winterrace@users.noreply.github.com> | 2019-08-21 07:59:11 +0200 |
---|---|---|
committer | Nathan Hjelm <hjelmn@google.com> | 2019-08-21 21:07:20 -0700 |
commit | 84c4fe881f261ca4a84a30b9638e45a75699f045 (patch) | |
tree | 4ce97ea07187b2c8c9078cdfd6631fe79a2d6144 /libusb/os/poll_windows.c | |
parent | 43ae426488e4d049fc55b08ad3f70cc249d0f98f (diff) | |
download | libusb-84c4fe881f261ca4a84a30b9638e45a75699f045.tar.gz |
Update poll_windows.c
Set fd_size to 0 when freeing the fd_table array.
Closes #614
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to 'libusb/os/poll_windows.c')
-rw-r--r-- | libusb/os/poll_windows.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index c8eff81..243495b 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -65,6 +65,7 @@ static void usbi_dec_fd_table() fd_count--; if (fd_count == 0) { free(fd_table); + fd_size = 0; fd_table = NULL; } } |