Author: loos
Date: Wed Dec 31 21:58:03 2014
New Revision: 276481
URL: https://svnweb.freebsd.org/changeset/base/276481
Log:
Free the buffer returned by gpio_pin_list() after the use.
Reported by: Coverity Scan
CID: 1257468
Modified:
head/usr.sbin/gpioctl/gpioctl.c
Modified: head/usr.sbin/gpioctl/gpioctl.c
==============================================================================
--- head/usr.sbin/gpioctl/gpioctl.c Wed Dec 31 20:34:12 2014
(r276480)
+++ head/usr.sbin/gpioctl/gpioctl.c Wed Dec 31 21:58:03 2014
(r276481)
@@ -159,6 +159,7 @@ dump_pins(gpio_handle_t handle, int verb
}
printf("\n");
}
+ free(cfgs);
}
static void
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"