Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 19:26:19 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326803 - head/usr.sbin/efibootmgr
Message-ID:  <201712121926.vBCJQJWC026322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712121926.vBCJQJWC026322>