trivial: Fix a resource leak spotted by coverity

This commit is contained in:
Richard Hughes 2017-02-08 11:03:48 +00:00
parent 8971645f78
commit 3e214856fb

View File

@ -324,8 +324,10 @@ synapticsmst_device_read_board_id (SynapticsMSTDevice *device,
G_IO_ERROR_INVALID_DATA,
"error reading EEPROM file %s",
filename);
close (fd);
return FALSE;
}
close (fd);
} else {
rc = synapticsmst_common_rc_get_command (connection,
UPDC_READ_FROM_EEPROM,