Fix a memory leak in /sbin/grub.

This commit is contained in:
okuji 1999-05-25 21:41:50 +00:00
parent b06ee733ef
commit cfd87522af
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1999-05-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* grub/asmstub.c (grub_stage2): Fix a memory leak that FP is
not closed.
1999-05-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* grub/main.c: Replace OPT_DISABLE_CONFIG_FILE and

View File

@ -191,8 +191,8 @@ Rich functionality for OS experts/designers.
@item
Compatibility for booting FreeBSD, NetBSD, OpenBSD, and
Linux. Proprietary OS's such as DOS, Windows NT, and OS/2 are supported
via a chain-loading function.
GNU/Linux. Proprietary OS's such as DOS, Windows NT, and OS/2 are
supported via a chain-loading function.
@end itemize
Except for specific compatibility modes (chain-loading and the Linux

View File

@ -152,8 +152,12 @@ grub_stage2 (void)
break;
/* Attempt to read the first sector. */
if (fread (buf, 1, 512, fp) != 512)
break;
{
fclose (fp);
break;
}
fclose (fp);
device_map[i + 0x80] = strdup (name);
}
first_scsi_disk = i + 0x80;