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:
parent
cd7310d5d5
commit
546796c1d7
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* include/grub/i386/loader.h (grub_linux_prot_size)
|
* include/grub/i386/loader.h (grub_linux_prot_size)
|
||||||
|
|
|
@ -411,9 +411,9 @@ main (int argc, char *argv[])
|
||||||
if (output)
|
if (output)
|
||||||
{
|
{
|
||||||
fp = fopen (output, "wb");
|
fp = fopen (output, "wb");
|
||||||
free (output);
|
|
||||||
if (! fp)
|
if (! fp)
|
||||||
grub_util_error ("cannot open %s", output);
|
grub_util_error ("cannot open %s", output);
|
||||||
|
free (output);
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_image (dir ? : GRUB_LIBDIR, prefix ? : DEFAULT_DIRECTORY, fp,
|
generate_image (dir ? : GRUB_LIBDIR, prefix ? : DEFAULT_DIRECTORY, fp,
|
||||||
|
|
Loading…
Reference in a new issue