examples: Fix a memory leak
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Thu, 19 Sep 2013 21:46:14 +0000 (23:46 +0200)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Fri, 20 Sep 2013 12:07:57 +0000 (14:07 +0200)
commit3c2e79cacfa286c7e990d97ac233b28db255a774
treecfe932836061ef14ee3767183f52d2c3549c5e9c
parent8be2ef0fae96e830d7ab5bd74e0d51a663e46d24
examples: Fix a memory leak

Close the image file before exiting the function

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