summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/ExtractKernelVersion.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/util/ExtractKernelVersion.py')
-rw-r--r--pym/portage/util/ExtractKernelVersion.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/util/ExtractKernelVersion.py b/pym/portage/util/ExtractKernelVersion.py
index 5cb9747e6..49957f5fb 100644
--- a/pym/portage/util/ExtractKernelVersion.py
+++ b/pym/portage/util/ExtractKernelVersion.py
@@ -37,6 +37,8 @@ def ExtractKernelVersion(base_dir):
return (None, str(details))
except IOError as details:
return (None, str(details))
+ finally:
+ f.close()
lines = [l.strip() for l in lines]