]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/raid.c (grub_util_raid_getmembers): Close fd before returning.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 19:06:50 +0000 (21:06 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Jun 2011 19:06:50 +0000 (21:06 +0200)
Reported by: David Volgyes <dvolgyes>.

ChangeLog
util/raid.c

index 327b52afcb8ad2c97c3e58e4fea4e68e6039bfc7..058116fbb511856868904dfdb07f4cf1ee7e9e37 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
+
+       Reported by: David Volgyes <dvolgyes>.
+
 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
index a6aa5f95e19dc79e4e267c3b5799d9f28d3d1830..c1c32b9590f82a52b915e2574a0bcbee4f7aa33a 100644 (file)
@@ -80,6 +80,8 @@ grub_util_raid_getmembers (const char *name)
 
   devicelist[j] = NULL;
 
+  close (fd);
+
   return devicelist;
 }