mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 02:31:05 +00:00
* util/ieee1275/ofpath.c (check_sas): Close fd.
(main): Free of_path. Reported by: David Volgyes <dvolgyes>.
This commit is contained in:
1 parent
03147f4667
commit
fe12fd5b43
2 files changed
+8
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/ieee1275/ofpath.c (check_sas): Close fd.
|
||||||
|
(main): Free of_path.
|
||||||
|
Reported by: David Volgyes <dvolgyes>.
|
||||||
|
|
||||||
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
|
* util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
|
||||||
|
|||||||
@@ -297,6 +297,7 @@ check_sas (char *sysfs_path, int *tgt)
|
|||||||
|
|
||||||
free (path);
|
free (path);
|
||||||
free (p);
|
free (p);
|
||||||
|
close (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -419,6 +420,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
of_path = grub_util_devname_to_ofpath (argv[1]);
|
of_path = grub_util_devname_to_ofpath (argv[1]);
|
||||||
printf("%s\n", of_path);
|
printf("%s\n", of_path);
|
||||||
|
free (of_path);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user