mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
dereferencing: Small fixes for deref errors.
Cleanup some dereferencing after free. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -41,8 +41,8 @@ mpr121_context mpr121_init(int bus, uint8_t address){
|
||||
}
|
||||
|
||||
if (mraa_i2c_address(dev->i2c, dev->address) != MRAA_SUCCESS){
|
||||
free(dev);
|
||||
printf("error using i2c address: %x\n", dev->address);
|
||||
free(dev);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user