]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
normal/main: Fix error handling.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:48:46 +0000 (09:48 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:48:46 +0000 (09:48 +0100)
Found by: Coverity scan.

grub-core/normal/main.c

index c41f175bd9f33fe3a1f032ae25079ac58913ce89..623b93ba624a9ab2a0a4f43bba4253819b41c31f 100644 (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;
     }