summaryrefslogtreecommitdiffstats
path: root/pyanaconda/isys
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-07-07 16:47:52 -0400
committerChris Lumens <clumens@redhat.com>2010-07-07 16:50:01 -0400
commit021b4e929a0595ab4f879228779baf5bb4c3db2c (patch)
tree5a6132118745119959324246076f9dfb7888cf14 /pyanaconda/isys
parentaea1ace94b0bdf106329dddd024e97e6e165cf39 (diff)
downloadanaconda-021b4e929a0595ab4f879228779baf5bb4c3db2c.tar.gz
anaconda-021b4e929a0595ab4f879228779baf5bb4c3db2c.tar.xz
anaconda-021b4e929a0595ab4f879228779baf5bb4c3db2c.zip
Fix a file descriptor leak in getDevices (#612153, mganisin).
Diffstat (limited to 'pyanaconda/isys')
-rw-r--r--pyanaconda/isys/devices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyanaconda/isys/devices.c b/pyanaconda/isys/devices.c
index 53130d128..9f22d9d56 100644
--- a/pyanaconda/isys/devices.c
+++ b/pyanaconda/isys/devices.c
@@ -187,6 +187,7 @@ storagedone:
buf[i] = '\0';
new->priv.hwaddr = strdup(buf);
}
+ close(fd);
}
if (new->priv.hwaddr) {