lib/fileutils: close fd if fdopen is failed

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
1 file changed