summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-03-27 20:00:38 -0700
committerAndy McCurdy <andy@andymccurdy.com>2014-03-27 20:00:38 -0700
commit8a2f3698576b8a67a8b3629173517c56d744e150 (patch)
tree38a41b9e7daad05839f7db24175b710d734baed5
parent97c50ccebf1498212c8f8e1fa9b87c3b10c48666 (diff)
downloadredis-py-8a2f3698576b8a67a8b3629173517c56d744e150.tar.gz
make sure we're not holding onto any references
-rw-r--r--redis/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 2fb5663..e00f6cc 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -121,6 +121,8 @@ class SocketBuffer(object):
def close(self):
self.purge()
self._buffer.close()
+ self._buffer = None
+ self._sock = None
class PythonParser(BaseParser):