mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Fix memory leak
This commit is contained in:
1 parent
105de6a758
commit
48798b6a1e
1 file changed
+1
@@ -63,6 +63,7 @@ grub_cmd_lsefisystab (struct grub_command *cmd __attribute__ ((unused)),
|
|||||||
*grub_utf16_to_utf8 ((grub_uint8_t *) vendor, st->firmware_vendor,
|
*grub_utf16_to_utf8 ((grub_uint8_t *) vendor, st->firmware_vendor,
|
||||||
vendor_utf16 - st->firmware_vendor) = 0;
|
vendor_utf16 - st->firmware_vendor) = 0;
|
||||||
grub_printf ("%s", vendor);
|
grub_printf ("%s", vendor);
|
||||||
|
grub_free (vendor);
|
||||||
}
|
}
|
||||||
|
|
||||||
grub_printf (", Version=%x\n", st->firmware_revision);
|
grub_printf (", Version=%x\n", st->firmware_revision);
|
||||||
|
|||||||
Reference in new issue
Block a user