mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-24 22:40:51 +00:00
unix/getroot: memory leak
Found by Coverity scan. CID: 96605
This commit is contained in:
parent
10a6d2d915
commit
5d0ee3d7a1
@ -544,6 +544,7 @@ grub_guess_root_devices (const char *dir_in)
|
||||
|
||||
if (stat (dir, &st) < 0)
|
||||
grub_util_error (_("cannot stat `%s': %s"), dir, strerror (errno));
|
||||
free (dir);
|
||||
|
||||
dev = st.st_dev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user