--- init/do_mounts_rd.c.orig 2003-05-15 15:05:56.000000000 -0500 +++ init/do_mounts_rd.c 2003-05-15 15:06:30.000000000 -0500 @@ -206,12 +206,14 @@ rotate = 0; if (close(in_fd)) { printk("Error closing the disk.\n"); + kfree(buf); goto noclose_input; } change_floppy("disk #%d", disk); in_fd = open(from, O_RDONLY, 0); if (in_fd < 0) { printk("Error opening disk.\n"); + kfree(buf); goto noclose_input; } printk("Loading disk #%d... ", disk);