]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/ieee1275/ofpath.c (check_sas): Close fd.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 20:18:31 +0000 (22:18 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 20:18:31 +0000 (22:18 +0200)
(main): Free of_path.
Reported by: David Volgyes <dvolgyes>.

ChangeLog
util/ieee1275/ofpath.c

index 59cb3ec57355f7d0f2dab096b7277a40ecd5c72e..062f66c00936b0bc9e375b682bc465b59aa6c846 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 1a433345d7bdf0921ed243737b5404bda520a2f8..f72bea8a5f8ed1c3832626a479fb9f8a1c441354 100644 (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;
 }