mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
This commit is contained in:
1 parent
91e5a33da5
commit
91ee7b6d73
2 files changed
+8
-1
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user