[PATCH] Close the dir descriptor after usage. (#589574)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 isys/devices.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/isys/devices.c b/isys/devices.c
index 98c8769..53130d1 100644
--- a/isys/devices.c
+++ b/isys/devices.c
@@ -135,6 +135,8 @@ struct device **getDevices(enum deviceType type) {
             ret[numdevices+1] = NULL;
             numdevices++;
         }
+
+        closedir(dir);
     }
 storagedone:
 
@@ -210,6 +212,8 @@ storagedone:
             ret[numdevices+1] = NULL;
             numdevices++;
         }
+
+        closedir(dir);
     }
 netdone:
     return ret;
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux