grub-core/fs/zfs/zfsinfo.c: memory leak in print_vdev_info
CID: 73635
This commit is contained in:
parent
dbbac5a04c
commit
03d79a878b
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
|
||||||
|
(CID 73635).
|
||||||
|
|
||||||
2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
|
2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/syslinux_parse.c (free_menu): Do not free
|
* grub-core/lib/syslinux_parse.c (free_menu): Do not free
|
||||||
|
|
|
@ -130,10 +130,12 @@ print_vdev_info (char *nvlist, int tab)
|
||||||
grub_free (bootpath);
|
grub_free (bootpath);
|
||||||
grub_free (devid);
|
grub_free (devid);
|
||||||
grub_free (path);
|
grub_free (path);
|
||||||
|
grub_free (type);
|
||||||
return GRUB_ERR_NONE;
|
return GRUB_ERR_NONE;
|
||||||
}
|
}
|
||||||
char is_mirror=(grub_strcmp(type,VDEV_TYPE_MIRROR) == 0);
|
char is_mirror=(grub_strcmp(type,VDEV_TYPE_MIRROR) == 0);
|
||||||
char is_raidz=(grub_strcmp(type,VDEV_TYPE_RAIDZ) == 0);
|
char is_raidz=(grub_strcmp(type,VDEV_TYPE_RAIDZ) == 0);
|
||||||
|
grub_free (type);
|
||||||
|
|
||||||
if (is_mirror || is_raidz)
|
if (is_mirror || is_raidz)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue