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:
committed by
Brendan Le Foll
parent
4472ff1629
commit
e606d1d615
@@ -441,6 +441,7 @@ mraa_i2c_stop(mraa_i2c_context dev)
|
|||||||
return dev->advance_func->i2c_stop_replace(dev);
|
return dev->advance_func->i2c_stop_replace(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(dev->fh);
|
||||||
free(dev);
|
free(dev);
|
||||||
return MRAA_SUCCESS;
|
return MRAA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user