boot1.efi Free() should check for NULL to provide consistent behavior
with libstand Free(). Reviewed by: imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D7497
This commit is contained in:
parent
627ea1e104
commit
88fb7b56ea
@ -78,7 +78,8 @@ Malloc(size_t len, const char *file __unused, int line __unused)
|
||||
void
|
||||
Free(void *buf, const char *file __unused, int line __unused)
|
||||
{
|
||||
(void)bs->FreePool(buf);
|
||||
if (buf != NULL)
|
||||
(void)bs->FreePool(buf);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user