summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2014-12-31 21:58:03 +0000
committerloos <loos@FreeBSD.org>2014-12-31 21:58:03 +0000
commitfe3091abcb6712a18d5675bcab90c7a807f50930 (patch)
treeda5be43e1aadabfa668d08e39e19ae7cdd75e878 /usr.sbin
parent6c2366689f42cf2ef36537c4208b6064e161b407 (diff)
downloadFreeBSD-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.c1
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
OpenPOWER on IntegriCloud