Skip to content

Commit

Permalink
mitigate memory leak (#5152)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Nov 21, 2024
1 parent e211152 commit 27f136b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openhands/server/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def close(self):
self.websocket = None
finally:
self.agent_session.close()
del (
self.agent_session
) # FIXME: this should not be necessary but it mitigates a memory leak

async def loop_recv(self):
try:
Expand Down

0 comments on commit 27f136b

Please sign in to comment.