diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c index acb38d61f..db571ec91 100644 --- a/grub-core/kern/efi/efi.c +++ b/grub-core/kern/efi/efi.c @@ -416,6 +416,7 @@ grub_efi_get_filename (grub_efi_device_path_t *dp0) { grub_error (GRUB_ERR_OUT_OF_RANGE, "malformed EFI Device Path node has length=%d", len); + grub_free (name); return NULL; }