efidisk: fix memory leak

Found by: Coverity scan.
CID: 96644
This commit is contained in:
Andrei Borzenkov 2016-01-12 21:16:34 +03:00
parent 6c35ce72ba
commit e9d71db53a

View file

@ -85,6 +85,12 @@ make_devices (void)
{
/* Uggh. */
grub_free (handles);
while (devices)
{
d = devices->next;
grub_free (devices);
devices = d;
}
return 0;
}