Examples: Fix device leak in hotplugtest
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Jan 2015 08:12:02 +0000 (00:12 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Jan 2015 08:12:02 +0000 (00:12 -0800)
commit30376161e536aacb448f2d5d872fde84cb697dfa
tree0f8fff79efa6da227d5bd302345f21a2b6783d11
parentcaa456adf93c5c5a9e03ffaa16e96c9a0a96d0cc
Examples: Fix device leak in hotplugtest

Device leak occurred if either of the following occured:
  1) Detach followed by attach
  2) Two consecutive attach

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