zfs: memory leak
Found by Coverity scan. CID: 96603
This commit is contained in:
parent
5d0ee3d7a1
commit
15ba6a40be
1 changed files with 2 additions and 0 deletions
|
@ -3668,6 +3668,8 @@ zfs_mount (grub_device_t dev)
|
||||||
data) != 0)
|
data) != 0)
|
||||||
{
|
{
|
||||||
grub_error (GRUB_ERR_BAD_FS, "Unsupported features in pool");
|
grub_error (GRUB_ERR_BAD_FS, "Unsupported features in pool");
|
||||||
|
grub_free (osp);
|
||||||
|
zfs_unmount (data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue