* 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
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue