]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
authorrobertmh <robertmh@localhost>
Sat, 20 Jun 2009 14:32:53 +0000 (14:32 +0000)
committerrobertmh <robertmh@localhost>
Sat, 20 Jun 2009 14:32:53 +0000 (14:32 +0000)
        * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
        after it's no longer needed.

ChangeLog
util/i386/pc/grub-mkimage.c

index 4e48c3f180981dde8b7a2f0318ca74b1cc405142..630829b8934f558c94c6652399bc060abb5ab96b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
+       after it's no longer needed.
+
 2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>
 
        * include/grub/i386/loader.h (grub_linux_prot_size)
index 19adc55a74914538ff4484d28a63da3210139a74..86bfd653fe480149af3c594a2e4bcbd643fb1e57 100644 (file)
@@ -411,9 +411,9 @@ main (int argc, char *argv[])
   if (output)
     {
       fp = fopen (output, "wb");
-      free (output);
       if (! fp)
        grub_util_error ("cannot open %s", output);
+      free (output);
     }
 
   generate_image (dir ? : GRUB_LIBDIR, prefix ? : DEFAULT_DIRECTORY, fp,