summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py
index beebde8a..9842cb2a 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -179,6 +179,7 @@ class Cache(object):
def close(self):
""" Close the package cache """
+ # explicitely free the FDs that _records has open
del self._records
self._records = None