Private
Public Access
2
0

i2c.c: added close of file handle on mraa_i2c_stop

Signed-off-by: Machiel Bruinink <m.bruinink@robotcaresystems.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Machiel Bruinink
2017-01-31 15:50:53 +01:00
committed by Brendan Le Foll
parent 4472ff1629
commit e606d1d615

View File

@@ -441,6 +441,7 @@ mraa_i2c_stop(mraa_i2c_context dev)
return dev->advance_func->i2c_stop_replace(dev);
}
close(dev->fh);
free(dev);
return MRAA_SUCCESS;
}