From 082f2fb1a69e15b7f2278443ec07e3012459052a Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 15 Jan 2018 22:17:39 +0000 Subject: [PATCH] Need to free uv after we're done using it. Reported by: andrew@ Sponsored by: Netflix --- stand/efi/boot1/boot1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/efi/boot1/boot1.c b/stand/efi/boot1/boot1.c index 6fe79f5e675..62c94db51ef 100644 --- a/stand/efi/boot1/boot1.c +++ b/stand/efi/boot1/boot1.c @@ -96,6 +96,7 @@ efi_getenv(EFI_GUID *g, const char *v, void *data, size_t *len) rv = RS->GetVariable(uv, g, &attr, &dl, data); if (rv == EFI_SUCCESS) *len = dl; + free(uv); return (rv); }