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 | |
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>
-rw-r--r-- | libusb/os/poll_windows.c | 1 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 1 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; } } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 8dc8177..4ec093e 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11395 +#define LIBUSB_NANO 11396 |