]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
truecrypt: fix memory leak
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 12 Jan 2016 18:41:48 +0000 (21:41 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 12 Jan 2016 18:52:51 +0000 (21:52 +0300)
Found by: Coverity scan.
CID: 156611

grub-core/loader/i386/pc/truecrypt.c

index 159eab1a722e43e594cc78839ac75b25212c75e7..9ea4fde42a560cccbd1b74ce3cd699a7512359c9 100644 (file)
@@ -205,7 +205,7 @@ grub_cmd_truecrypt (grub_command_t cmd __attribute__ ((unused)),
  fail:
 
   if (!grub_errno)
-    return grub_error (GRUB_ERR_BAD_OS, "bad truecrypt ISO");
+    grub_error (GRUB_ERR_BAD_OS, "bad truecrypt ISO");
 
   if (file)
     grub_file_close (file);