unix/relpath: memory leak
Found by Coverity scan. CID: 96606
This commit is contained in:
parent
48cd9dc104
commit
10a6d2d915
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue