efidisk: fix memory leak
Found by: Coverity scan. CID: 96644
This commit is contained in:
parent
6c35ce72ba
commit
e9d71db53a
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ make_devices (void)
|
|||
{
|
||||
/* Uggh. */
|
||||
grub_free (handles);
|
||||
while (devices)
|
||||
{
|
||||
d = devices->next;
|
||||
grub_free (devices);
|
||||
devices = d;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue