svn commit: r326801 - head/usr.sbin/efibootmgr

Warner Losh imp at FreeBSD.org
Tue Dec 12 19:26:16 UTC 2017


Author: imp
Date: Tue Dec 12 19:26:10 2017
New Revision: 326801
URL: https://svnweb.freebsd.org/changeset/base/326801

Log:
  Don't leak new_data.
  
  CID: 1383605
  Sponsored by: Netflix

Modified:
  head/usr.sbin/efibootmgr/efibootmgr.c

Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c	Tue Dec 12 19:25:54 2017	(r326800)
+++ head/usr.sbin/efibootmgr/efibootmgr.c	Tue Dec 12 19:26:10 2017	(r326801)
@@ -361,6 +361,7 @@ set_boot_order(char *order)
 	free(cp);
 	if (set_bootvar("BootOrder", (uint8_t*)new_data, size) < 0)
 		err(1, "Unabke to set BootOrder to %s", order);
+	free(new_data);
 }
 
 static void


More information about the svn-src-all mailing list