mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
memleak: Free alloc'ed memory for device
Added free for device context. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
fa8ab6194d
commit
13eea53090
@ -352,6 +352,8 @@ void bmp280_close(bmp280_context dev)
|
||||
|
||||
if (dev->gpio)
|
||||
mraa_gpio_close(dev->gpio);
|
||||
|
||||
free(dev);
|
||||
}
|
||||
|
||||
upm_result_t bmp280_update(const bmp280_context dev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user