From 3e214856fbbb80ad0b44defabec711b7e2c38c87 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 8 Feb 2017 11:03:48 +0000 Subject: [PATCH] trivial: Fix a resource leak spotted by coverity --- plugins/synapticsmst/synapticsmst-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/synapticsmst/synapticsmst-device.c b/plugins/synapticsmst/synapticsmst-device.c index 9693e2d33..9bb60ad93 100644 --- a/plugins/synapticsmst/synapticsmst-device.c +++ b/plugins/synapticsmst/synapticsmst-device.c @@ -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,