* util/ieee1275/ofpath.c (check_sas): Close fd.

(main): Free of_path.
	Reported by: David Volgyes <dvolgyes>.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-06-23 22:18:31 +02:00
parent 03147f4667
commit fe12fd5b43
2 changed files with 8 additions and 0 deletions

View file

@ -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>
* util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.

View file

@ -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;
}