2009-07-13 Pavel Roskin <proski@gnu.org>
commit99a9c61841229e1ac4dd1e3a9e6c9d84fd6bd3cc
authorPavel Roskin <proski@gnu.org>
Mon, 13 Jul 2009 22:21:49 +0000 (13 22:21 +0000)
committerPavel Roskin <proski@gnu.org>
Mon, 13 Jul 2009 22:21:49 +0000 (13 22:21 +0000)
tree5f82add7d62af08f083d7b0fec1b42a9a5f0ed6f
parent456a4b49b91bbba4c4a2d335f3f4ed9558814e9f
2009-07-13  Pavel Roskin  <proski@gnu.org>

* kern/device.c (grub_device_iterate): Change struct part_ent to
hold the name, not a pointer to it.  Use one grub_malloc() per
partition, not two.  Free partition_name if grub_malloc() fails.
Set ents to NULL only before grub_partition_iterate() is called.

git-svn-id: svn://svn.savannah.gnu.org/grub/trunk/grub2@2405 d0de0278-0dc1-4c01-8a07-af38b3205e46
ChangeLog
kern/device.c