diff options
author | loos <loos@FreeBSD.org> | 2014-12-31 21:58:03 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2014-12-31 21:58:03 +0000 |
commit | fe3091abcb6712a18d5675bcab90c7a807f50930 (patch) | |
tree | da5be43e1aadabfa668d08e39e19ae7cdd75e878 /usr.sbin | |
parent | 6c2366689f42cf2ef36537c4208b6064e161b407 (diff) | |
download | FreeBSD-src-fe3091abcb6712a18d5675bcab90c7a807f50930.zip FreeBSD-src-fe3091abcb6712a18d5675bcab90c7a807f50930.tar.gz |
Free the buffer returned by gpio_pin_list() after the use.
Reported by: Coverity Scan
CID: 1257468
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/gpioctl/gpioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c index d636ad6..37f84fa 100644 --- a/usr.sbin/gpioctl/gpioctl.c +++ b/usr.sbin/gpioctl/gpioctl.c @@ -159,6 +159,7 @@ dump_pins(gpio_handle_t handle, int verbose) } printf("\n"); } + free(cfgs); } static void |