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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to