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