Fix a memory leak in /sbin/grub.

This commit is contained in:
okuji committed 1999-05-25 21:41:50 +00:00
1 parent b06ee733ef
commit cfd87522af
3 files changed
+12 -3

No files matched your search

+5 -1
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;