diff options
author | Chris Lumens <clumens@redhat.com> | 2010-07-07 16:47:52 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2010-07-07 16:50:01 -0400 |
commit | 021b4e929a0595ab4f879228779baf5bb4c3db2c (patch) | |
tree | 5a6132118745119959324246076f9dfb7888cf14 /pyanaconda/isys | |
parent | aea1ace94b0bdf106329dddd024e97e6e165cf39 (diff) | |
download | anaconda-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.c | 1 |
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) { |