Need to free uv after we're done using it.

Reported by: andrew@
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2018-01-15 22:17:39 +00:00
parent 96c4f2c537
commit 082f2fb1a6

View File

@ -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);
}