summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-06-16 19:16:33 +0000
committerChris Lumens <clumens@redhat.com>2005-06-16 19:16:33 +0000
commita8d726380abc1282c9a64f61274a569031f92831 (patch)
treedc453bd1fd84ef012a4312ec1ed0ca1bba66eb25
parentfc5272817f4ae0e3c79d81dbfc293ea0c5a787c2 (diff)
downloadanaconda-a8d726380abc1282c9a64f61274a569031f92831.tar.gz
anaconda-a8d726380abc1282c9a64f61274a569031f92831.tar.xz
anaconda-a8d726380abc1282c9a64f61274a569031f92831.zip
Close file descriptor leak relating to reading the partition table
(Jon Burgess, #160693).
-rw-r--r--ChangeLog5
-rw-r--r--isys/eddsupport.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 77073ad2c..a16100846 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-16 Chris Lumens <clumens@redhat.com>
+
+ * isys/eddsupport.c (readDiskSig): Close file descriptor leak
+ relating to reading the partition table (Jon Burgess, #160693).
+
2005-06-16 Paul Nasrat <pnasrat@redhat.com>
* anaconda: Fix typo breaking pseries console support
diff --git a/isys/eddsupport.c b/isys/eddsupport.c
index f5fe79b86..f757b9be3 100644
--- a/isys/eddsupport.c
+++ b/isys/eddsupport.c
@@ -182,6 +182,7 @@ static int readDiskSig(char *device, uint32_t *disksig) {
return -1;
}
+ close(fd);
unlink("/tmp/biosdev");
return 0;
}