Commits

Robert Brewer committed 2ffdd84

Fixed #1082 (RamSession leak)

  • Participants
  • Parent commits 2776e90

Comments (0)

Files changed (1)

File cherrypy/lib/sessions.py

     
     def release_lock(self):
         """Release the lock on the currently-loaded session data."""
-        self.locks[self.id].release()
+        lock = self.locks.pop(self.id, None)
+        if lock:
+            lock.release()
         self.locked = False
     
     def __len__(self):