util/getroot: Add missing grub_disk_close.
Found by: Coverity scan.
This commit is contained in:
parent
c4fcfd8744
commit
866f469683
1 changed files with 4 additions and 1 deletions
|
@ -417,7 +417,10 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
|||
|
||||
name = grub_util_get_ldm (disk, ctx.start);
|
||||
if (name)
|
||||
{
|
||||
grub_disk_close (disk);
|
||||
return name;
|
||||
}
|
||||
|
||||
ctx.partname = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue