normal/main: Fix error handling.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-26 09:48:46 +01:00
parent a05a6e6f92
commit 73b1e83839

View file

@ -130,7 +130,7 @@ read_config_file (const char *config)
file = grub_bufio_open (rawfile, 0);
if (! file)
{
grub_file_close (file);
grub_file_close (rawfile);
return 0;
}