mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
unix/relpath: memory leak
Found by Coverity scan. CID: 96606
This commit is contained in:
1 parent
48cd9dc104
commit
10a6d2d915
1 file changed
+4
-1
@@ -51,7 +51,10 @@ grub_make_system_path_relative_to_its_root (const char *path)
|
||||
#ifdef __linux__
|
||||
ret = grub_make_system_path_relative_to_its_root_os (p);
|
||||
if (ret)
|
||||
return ret;
|
||||
{
|
||||
free (p);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* For ZFS sub-pool filesystems. */
|
||||
|
||||
Reference in new issue
Block a user