Skip to content

Commit

Permalink
asyncio: Fix memory leak caused by hiredis (redis#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
oranav committed Apr 4, 2023
1 parent e1017fd commit 7efb7ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/asyncio/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def on_connect(self, connection: "Connection"):

def on_disconnect(self):
self._connected = False
self._reader = None

async def can_read_destructive(self):
if not self._connected:
Expand Down

0 comments on commit 7efb7ad

Please sign in to comment.