fs/zfs/zfs.c: fix memory leak.
Found by: Coverity scan.
This commit is contained in:
parent
637fc62699
commit
e871994849
1 changed files with 2 additions and 0 deletions
|
@ -2835,6 +2835,8 @@ dnode_get_path (struct subvolume *subvol, const char *path_in, dnode_end_t *dn,
|
|||
if (!path_buf)
|
||||
{
|
||||
grub_free (oldpathbuf);
|
||||
if (free_symval)
|
||||
grub_free (sym_value);
|
||||
return grub_errno;
|
||||
}
|
||||
grub_memcpy (path, sym_value, sym_sz);
|
||||
|
|
Loading…
Reference in a new issue