libhammer - Fix a fd leak on the previous commit
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 7 Feb 2015 11:04:04 +0000 (12:04 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 7 Feb 2015 11:06:20 +0000 (12:06 +0100)
commit0b4d026e9789b12bc4fb18a0650e71d5573c39be
tree9d310d63eb690b1465da6880ec979fcd86faf41f
parent2841837793bd095a82f477e9c370cfe6cfb3862c
libhammer - Fix a fd leak on the previous commit

- Also check fd just in case it's invalid

Submitted-by: tkusumi (with modification)
Closes: #2784
lib/libhammer/misc.c