summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>2011-11-18 14:49:41 -0600
committerKevin L. Mitchell <kevin.mitchell@rackspace.com>2011-11-18 14:49:41 -0600
commita594f4d34418c27197fe7f82eab150bc7cb70478 (patch)
tree414e941bae7f8c73c9186ff7aa66fe6b08a4767b
parent15937a41609a0216020aa23a8debbd10c1f74de6 (diff)
Fix a minor memory leak
Fixes a minor memory leak caused by a self-referential data structure with a __del__() method by explicitly breaking the cycle. Change-Id: Ic2c896d3067f8a2205abc8a43ec290fdbd92ef09
-rw-r--r--nova/rpc/impl_kombu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/rpc/impl_kombu.py b/nova/rpc/impl_kombu.py
index 74c8cf412..1b80fce04 100644
--- a/nova/rpc/impl_kombu.py
+++ b/nova/rpc/impl_kombu.py
@@ -682,6 +682,8 @@ class MulticallWaiter(object):
def done(self):
self._done = True
+ self._iterator.close()
+ self._iterator = None
self._connection.close()
def __call__(self, data):