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

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


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

Log:
  Free load_opt_buf after we're done with it.
  
  CID: 1383607
  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:26:15 2017	(r326802)
+++ head/usr.sbin/efibootmgr/efibootmgr.c	Tue Dec 12 19:26:19 2017	(r326803)
@@ -684,8 +684,9 @@ make_boot_var(const char *label, const char *loader, c
 	new_ent->name = bootvar;
 	new_ent->guid = EFI_GLOBAL_GUID;
 	LIST_INSERT_HEAD(&efivars, new_ent, entries);
-
+	free(load_opt_buf);
 	free(dp);
+
 	return 0;
 }
 


More information about the svn-src-head mailing list