commands/hdparm: Add missing grub_disk_close.
Found by: Coverity scan.
This commit is contained in:
parent
9d999852a2
commit
68cf24376c
1 changed files with 1 additions and 0 deletions
|
@ -329,6 +329,7 @@ grub_cmd_hdparm (grub_extcmd_context_t ctxt, int argc, char **args)
|
|||
break;
|
||||
}
|
||||
default:
|
||||
grub_disk_close (disk);
|
||||
return grub_error (GRUB_ERR_IO, "not an ATA device");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue