Date: Tue, 12 Dec 2017 19:26:10 +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: r326801 - head/usr.sbin/efibootmgr Message-ID: <201712121926.vBCJQAnY026217@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712121926.vBCJQAnY026217>