Date: Wed, 7 Dec 2022 18:34:48 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7014e78fb714 - main - boot: Remove stray free() Message-ID: <202212071834.2B7IYmbx015692@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7014e78fb714f85fe91c611663fdfb937b96714e commit 7014e78fb714f85fe91c611663fdfb937b96714e Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-12-07 18:30:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-12-07 18:30:04 +0000 boot: Remove stray free() Early versions of this code had a free, but this one doesn't need it. Remove the forgotten free(vv); from earlier versions. Fixes: ed56dcfc6b1f Noticed by: Michael Butler Sponsored by: Netflix --- sys/kern/subr_boot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/subr_boot.c b/sys/kern/subr_boot.c index 49c7769afce4..d920140ae4b9 100644 --- a/sys/kern/subr_boot.c +++ b/sys/kern/subr_boot.c @@ -179,7 +179,6 @@ static int howto_masks[] = { SETENV(n, "1"); else SETENV(n, vv); - free(vv); } #endif return (howto);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212071834.2B7IYmbx015692>