svn commit: r276481 - head/usr.sbin/gpioctl

Luiz Otavio O Souza loos at FreeBSD.org
Wed Dec 31 21:58:04 UTC 2014


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


More information about the svn-src-head mailing list