mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +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
@@ -1,3 +1,7 @@
|
||||
2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
|
||||
|
||||
2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/lvm.h (grub_lvm_pv): Correct start type.
|
||||
|
||||
@@ -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