zfs: memory leak

Found by Coverity scan.
CID: 96603
This commit is contained in:
Andrei Borzenkov 2015-06-19 18:38:25 +03:00
parent 5d0ee3d7a1
commit 15ba6a40be

View file

@ -3668,6 +3668,8 @@ zfs_mount (grub_device_t dev)
data) != 0)
{
grub_error (GRUB_ERR_BAD_FS, "Unsupported features in pool");
grub_free (osp);
zfs_unmount (data);
return NULL;
}