mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-26 05:15:29 +00:00
unix/relpath: memory leak
Found by Coverity scan. CID: 96606
This commit is contained in:
parent
48cd9dc104
commit
10a6d2d915
@ -51,7 +51,10 @@ grub_make_system_path_relative_to_its_root (const char *path)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
ret = grub_make_system_path_relative_to_its_root_os (p);
|
ret = grub_make_system_path_relative_to_its_root_os (p);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
{
|
||||||
|
free (p);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For ZFS sub-pool filesystems. */
|
/* For ZFS sub-pool filesystems. */
|
||||||
|
Loading…
Reference in New Issue
Block a user