* grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-11-12 23:42:49 +01:00
1 parent 91e5a33da5
commit 91ee7b6d73
2 files changed
+8 -1

No files matched your search

+4 -1
View File
@@ -1751,7 +1751,10 @@ find_system_device (const char *os_dev, struct stat *st, int convert, int add)
}
if (!add)
return -1;
{
free (os_disk);
return -1;
}
if (i == ARRAY_SIZE (map))
grub_util_error (_("device count exceeds limit"));