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.
This commit is contained in:
robertmh 2009-06-20 14:32:53 +00:00
parent cd7310d5d5
commit 546796c1d7
2 changed files with 6 additions and 1 deletions

View file

@ -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)

View 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,