examples: Fix a memory leak
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Thu, 19 Sep 2013 21:51:04 +0000 (23:51 +0200)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Fri, 20 Sep 2013 12:08:30 +0000 (14:08 +0200)
commite2babf7ec295bde9d0b04fe1c325131dc6aacf51
treef9162076d15e1ef09a768e55e49c98a2228cd8cc
parent3c2e79cacfa286c7e990d97ac233b28db255a774
examples: Fix a memory leak

Close the image file before exiting the function

Problem detected by the Coverity tool
CID 1042549 (#2 of 3): Resource leak (RESOURCE_LEAK)9. leaked_storage:
Variable "image" going out of scope leaks the storage it points to.
examples/ezusb.c
libusb/version_nano.h