2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>

* disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-05 15:29:28 +01:00
parent d116e0d8d1
commit 3ab4bd77dd
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
* disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
Support relative image path in theme file.

View file

@ -208,12 +208,14 @@ grub_scsi_iterate (int (*hook) (const char *name))
for (i = 0; i < luns; i++)
{
char *sname;
int ret;
sname = grub_xasprintf ("%s%c", name, 'a' + i);
if (!sname)
return 1;
if (hook (sname))
return 1;
ret = hook (sname);
grub_free (sname);
if (ret)
return 1;
}
return 0;
}