loader: fix a file descriptor leak
commitcedf9a6f4549900f857954059284a96814e4c7a3
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 12 Jan 2011 19:48:57 +0000 (12 19:48 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 12 Jan 2011 19:48:57 +0000 (12 19:48 +0000)
tree173bbe45d92837482233a7e5b3139d7b715428f4
parent8ce7d35273352ebe19c871e6b32a52db77fa08c3
loader: fix a file descriptor leak

Fix a file descriptor leak, reported by cppcheck:
[/src/qemu/hw/loader.c:311]: (error) Resource leak: fd

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/loader.c