+2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
+
2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
}
}
+ grub_free (tmp_buf);
grub_errno = GRUB_ERR_NONE;
{
grub_error_push ();
grub_dprintf ("disk", "%s read failed\n", disk->name);
grub_error_pop ();
+ grub_free (tmp_buf);
return grub_errno;
}
grub_memcpy (buf, tmp_buf + offset, size);
+ grub_free (tmp_buf);
return GRUB_ERR_NONE;
}
}