io: Fix memory leaks in usbi_io_init()
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 27 Aug 2014 06:36:12 +0000 (23:36 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sun, 7 Sep 2014 06:11:23 +0000 (23:11 -0700)
commitb72f4cf77edb1975cada8aab5ae63361c68c5992
tree41074a0a363dcac8d54f96c097806c5f71225f3f
parenta0d37149dc7a51e8122ae666783333cde321bc44
io: Fix memory leaks in usbi_io_init()

* If the hotplug pipe failed to be created, the usbi_pollfd for the
  control pipe was being leaked.
* If the usbi_pollfd for timerfd failed to be added, the usbi_pollfd
  for the hotplug pipe was being leaked.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c
libusb/version_nano.h