* util/ieee1275/ofpath.c (check_sas): Close fd.
(main): Free of_path. Reported by: David Volgyes <dvolgyes>.
This commit is contained in:
parent
03147f4667
commit
fe12fd5b43
2 changed files with 8 additions and 0 deletions
|
@ -297,6 +297,7 @@ check_sas (char *sysfs_path, int *tgt)
|
|||
|
||||
free (path);
|
||||
free (p);
|
||||
close (fd);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -419,6 +420,7 @@ int main(int argc, char **argv)
|
|||
|
||||
of_path = grub_util_devname_to_ofpath (argv[1]);
|
||||
printf("%s\n", of_path);
|
||||
free (of_path);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue