gptsync: Add missing device_close.

Found by: Coverity scan
This commit is contained in:
Vladimir Serbinenko 2015-01-24 20:52:02 +01:00
parent 95a8c9182b
commit 9d999852a2

View file

@ -235,6 +235,8 @@ grub_cmd_gptsync (grub_command_t cmd __attribute__ ((unused)),
return grub_errno;
}
grub_device_close (dev);
grub_printf_ (N_("New MBR is written to `%s'\n"), args[0]);
return GRUB_ERR_NONE;