acpi: fix memory leak
Found by: Coverity scan. CID: 96673
This commit is contained in:
parent
66768b99f1
commit
8fe17d91af
1 changed files with 3 additions and 0 deletions
|
@ -593,6 +593,9 @@ grub_cmd_acpi (struct grub_extcmd_context *ctxt, int argc, char **args)
|
||||||
if (! table->addr)
|
if (! table->addr)
|
||||||
{
|
{
|
||||||
free_tables ();
|
free_tables ();
|
||||||
|
grub_free (exclude);
|
||||||
|
grub_free (load_only);
|
||||||
|
grub_free (table);
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
}
|
}
|
||||||
table->next = acpi_tables;
|
table->next = acpi_tables;
|
||||||
|
|
Loading…
Reference in a new issue