From: Vladimir Serbinenko Date: Mon, 26 Jan 2015 08:48:46 +0000 (+0100) Subject: normal/main: Fix error handling. X-Git-Tag: 2.02-beta3~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b1e8383906910e9da82fb3c79c590e450d598f;p=thirdparty%2Fgrub.git normal/main: Fix error handling. Found by: Coverity scan. --- diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c index c41f175bd..623b93ba6 100644 --- a/grub-core/normal/main.c +++ b/grub-core/normal/main.c @@ -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; }