Free the buffer returned by gpio_pin_list() after the use.
Reported by: Coverity Scan CID: 1257468
This commit is contained in:
parent
183dc9860a
commit
21bc384a0d
@ -159,6 +159,7 @@ dump_pins(gpio_handle_t handle, int verbose)
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
free(cfgs);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user