mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
unix/getroot: memory leak
Found by Coverity scan. CID: 96605
This commit is contained in:
1 parent
10a6d2d915
commit
5d0ee3d7a1
1 file changed
+1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user